MCPcopy
hub / github.com/Python-Markdown/markdown / build_preprocessors

Function build_preprocessors

markdown/preprocessors.py:37–42  ·  view source on GitHub ↗

Build and return the default set of preprocessors used by Markdown.

(md: Markdown, **kwargs: Any)

Source from the content-addressed store, hash-verified

35
36
37def build_preprocessors(md: Markdown, **kwargs: Any) -> util.Registry[Preprocessor]:
38 """ Build and return the default set of preprocessors used by Markdown. """
39 preprocessors = util.Registry()
40 preprocessors.register(NormalizeWhitespace(md), 'normalize_whitespace', 30)
41 preprocessors.register(HtmlBlockPreprocessor(md), 'html_block', 20)
42 return preprocessors
43
44
45class Preprocessor(util.Processor):

Callers 1

build_parserMethod · 0.85

Calls 3

registerMethod · 0.95
NormalizeWhitespaceClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…