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

Function is_prose_line

scripts/lint_note.py:944–952  ·  view source on GitHub ↗
(line: str)

Source from the content-addressed store, hash-verified

942
943
944def is_prose_line(line: str) -> bool:
945 stripped = line.strip()
946 if not stripped:
947 return False
948 if stripped.startswith(("#", "-", "*", "> ", "```", "![[", "*论文原图编号")):
949 return False
950 if stripped.startswith("`") and stripped.endswith("`"):
951 return False
952 return True
953
954
955def suspicious_mid_sentence_linebreaks(text: str) -> list[dict[str, object]]:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected