1"""markdown-it default options."""
2from ..utils import PresetType
3
4
5def make() -> PresetType:
6 return {
7 "options": {
8 "maxNesting": 100, # Internal protection, recursion limit
9 "html": False, # Enable HTML tags in source
10 # this is just a shorthand for .disable(["html_inline", "html_block"])
11 # used by the linkify rule:
12 "linkify": False, # autoconvert URL-like texts to links
13 # used by the replacements and smartquotes rules:
14 # Enable some language-neutral replacements + quotes beautification
15 "typographer": False,
16 # used by the smartquotes rule:
17 # Double + single quotes replacement pairs, when typographer enabled,
18 # and smartquotes on. Could be either a String or an Array.
19 # For example, you can use '«»„“' for Russian, '„“‚‘' for German,
20 # and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).
21 "quotes": "\u201c\u201d\u2018\u2019", # /* “”‘’ */
22 # Renderer specific; these options are used directly in the HTML renderer
23 "xhtmlOut": False, # Use '/' to close single tags (<br />)
24 "breaks": False, # Convert '\n' in paragraphs into <br>
25 "langPrefix": "language-", # CSS language prefix for fenced blocks
26 # Highlighter function. Should return escaped HTML,
27 # or '' if the source string is not changed and should be escaped externally.
28 # If result starts with <pre... internal wrapper is skipped.
29 #
30 # function (/*str, lang, attrs*/) { return ''; }
31 #
32 "highlight": None,
33 },
34 "components": {"core": {}, "block": {}, "inline": {}},
35 }