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