MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / normalize

Function normalize

markdown_it/rules_core/normalize.py:12–19  ·  view source on GitHub ↗
(state: StateCore)

Source from the content-addressed store, hash-verified

10
11
12def normalize(state: StateCore) -> None:
13 # Normalize newlines
14 string = NEWLINES_RE.sub("\n", state.src)
15
16 # Replace NULL characters
17 string = NULL_RE.sub("\ufffd", string)
18
19 state.src = string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…