Build and return the default set of preprocessors used by Markdown.
(md: Markdown, **kwargs: Any)
| 35 | |
| 36 | |
| 37 | def 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 | |
| 45 | class Preprocessor(util.Processor): |
no test coverage detected
searching dependent graphs…