markdown_it.utils module#

class markdown_it.utils.OptionsDict[source]#

Bases: dict

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

property breaks: bool#

Convert newlines in paragraphs into <br>.

property highlight: Callable[[str, str, str], str] | None#

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: str | Path) list[list][source]#