from typing import Any, Pattern from . import util def build_preprocessors(md, **kwargs): ... class Preprocessor(util.Processor): def run(self, lines: list[str]) -> list[str]: ... class NormalizeWhitespace(Preprocessor): ... class HtmlBlockPreprocessor(Preprocessor): right_tag_patterns: Any attrs_pattern: str = ... left_tag_pattern: Any attrs_re: Any left_tag_re: Any markdown_in_raw: bool = ... class ReferencePreprocessor(Preprocessor): TITLE: str = ... RE: Pattern[str] TITLE_RE: Pattern[str]