markdown_it.utils module

class markdown_it.utils.AttrDict(*args, **kwargs)[source]

Bases: dict

class markdown_it.utils.OptionsDict[source]

Bases: dict

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

property breaks

Convert newlines in paragraphs into <br>.

property highlight

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

property html

Enable HTML tags in source.

property langPrefix

CSS language prefix for fenced blocks.

property linkify

Enable autoconversion of URL-like texts to links.

property maxNesting

Internal protection, recursion limit.

property quotes

Quote characters.

property typographer

Enable smartquotes and replacements.

property xhtmlOut

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

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