markdown_it.utils module

class markdown_it.utils.AttrDict(*args, **kwargs)[源代码]

基类:dict

class markdown_it.utils.OptionsDict[源代码]

基类:dict

A dictionary, with attribute access to core markdownit configuration options.

property breaks: bool

Convert newlines in paragraphs into <br>.

property highlight: Optional[Callable[[str, str, str], str]]

Highlighter function: (content, langName, langAttrs) -> escaped HTML.

property html: bool

Enable HTML tags in source.

property langPrefix: str

CSS language prefix for fenced blocks.

property linkify: bool

Enable autoconversion of URL-like texts to links.

property maxNesting: int

Internal protection, recursion limit.

property quotes: str

Quote characters.

property typographer: bool

Enable smartquotes and replacements.

property xhtmlOut: bool

Use ‘/’ to close single tags (<br />).

markdown_it.utils.read_fixture_file(path: Union[str, pathlib.Path]) List[list][源代码]