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

Function note_references_image_embed

scripts/write_obsidian_note.py:77–83  ·  view source on GitHub ↗
(note_text: str, expected_relative: str)

Source from the content-addressed store, hash-verified

75
76
77def note_references_image_embed(note_text: str, expected_relative: str) -> bool:
78 markdown_targets = re.findall(r"!\[[^\]]*\]\(([^)\s]+)(?:\s+\"[^\"]*\")?\)", note_text)
79 obsidian_targets = re.findall(r"!\[\[([^\]]+)\]\]", note_text)
80 return any(
81 embed_target_matches(target, expected_relative)
82 for target in markdown_targets + obsidian_targets
83 )
84
85
86def materialize_insert_decisions(

Callers 1

Calls 1

embed_target_matchesFunction · 0.85

Tested by

no test coverage detected