MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _replace

Function _replace

scripts/json_to_markdown.py:434–440  ·  view source on GitHub ↗
(m: re.Match)

Source from the content-addressed store, hash-verified

432 ``<Insert Month and\nYear>`` or comparisons like ``<CIN2`` that span
433 lines and break Vue/VitePress ("Element is missing end tag").
434
435 Preserves: intentional HTML comments, Markdown auto-links <https://...>,
436 known safe HTML tags, and base64 data URIs in img tags.
437 Escapes every other ``<`` (complete or incomplete tag-like sequences).
438 """
439 if not text:
440 return text
441
442 protected: list[str] = []
443

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected