(text: str)
| 825 | |
| 826 | |
| 827 | def has_figure_marker(text: str) -> bool: |
| 828 | return ( |
| 829 | "[!figure]" in text |
| 830 | or "[FIGURE_PLACEHOLDER]" in text |
| 831 | or any(is_image_embed_line(line) for line in text.splitlines()) |
| 832 | ) |
| 833 | |
| 834 | |
| 835 | def is_italic_caption_line(line: str) -> bool: |