MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / make

Function make

markdown_it/presets/default.py:6–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def make() -> PresetType:
7 return {
8 "options": {
9 "maxNesting": 100, # Internal protection, recursion limit
10 "html": False, # Enable HTML tags in source
11 # 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 links
14 # used by the replacements and smartquotes rules:
15 # Enable some language-neutral replacements + quotes beautification
16 "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 renderer
24 "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 blocks
27 # 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 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…