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

Function _formula_snippet

scripts/lint_note.py:1033–1037  ·  view source on GitHub ↗
(content: str, limit: int = 120)

Source from the content-addressed store, hash-verified

1031
1032
1033def _formula_snippet(content: str, limit: int = 120) -> str:
1034 normalized = " ".join(content.split())
1035 if len(normalized) <= limit:
1036 return normalized
1037 return normalized[: limit - 3] + "..."
1038
1039
1040def _strip_fenced_code_preserve_newlines(text: str) -> str:

Callers 1

_extract_math_blocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected