MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / image_embed_caption_issues

Function image_embed_caption_issues

scripts/lint_note.py:844–860  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

842
843
844def image_embed_caption_issues(text: str) -> list[dict[str, object]]:
845 issues: list[dict[str, object]] = []
846 lines = text.splitlines()
847 for idx, line in enumerate(lines):
848 stripped = line.strip()
849 if not is_image_embed_line(stripped):
850 continue
851 if idx + 1 < len(lines) and is_italic_caption_line(lines[idx + 1]):
852 continue
853 issues.append(
854 {
855 "line_number": idx + 1,
856 "line": stripped,
857 "reason": "inserted_figure_missing_caption",
858 }
859 )
860 return issues
861
862
863def figure_structure_issues(text: str) -> list[dict[str, object]]:

Callers 1

figure_structure_issuesFunction · 0.85

Calls 2

is_image_embed_lineFunction · 0.85
is_italic_caption_lineFunction · 0.85

Tested by

no test coverage detected