MCPcopy Create free account
hub / github.com/unclecode/crawl4ai / escape_md

Function escape_md

crawl4ai/html2text/utils.py:199–204  ·  view source on GitHub ↗

Escapes markdown-sensitive characters within other markdown constructs.

(text: str)

Source from the content-addressed store, hash-verified

197
198
199def escape_md(text: str) -> str:
200 """
201 Escapes markdown-sensitive characters within other markdown
202 constructs.
203 """
204 return config.RE_MD_CHARS_MATCHER.sub(r"\\\1", text)
205
206
207def escape_md_section(

Callers 2

link_urlMethod · 0.85
handle_tagMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…