Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/markdown_it/presets/zero.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 06:07 +0000

1""" 

2"Zero" preset, with nothing enabled. Useful for manual configuring of simple 

3modes. For example, to parse bold/italic only. 

4""" 

5 

6 

7def make(): 

8 return { 

9 "options": { 

10 "maxNesting": 20, # Internal protection, recursion limit 

11 "html": False, # Enable HTML tags in source 

12 # this is just a shorthand for .disable(["html_inline", "html_block"]) 

13 # used by the linkify rule: 

14 "linkify": False, # autoconvert URL-like texts to links 

15 # used by the replacements and smartquotes rules: 

16 # Enable some language-neutral replacements + quotes beautification 

17 "typographer": False, 

18 # used by the smartquotes rule: 

19 # Double + single quotes replacement pairs, when typographer enabled, 

20 # and smartquotes on. Could be either a String or an Array. 

21 # For example, you can use '«»„“' for Russian, '„“‚‘' for German, 

22 # and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp). 

23 "quotes": "\u201c\u201d\u2018\u2019", # /* “”‘’ */ 

24 # Renderer specific; these options are used directly in the HTML renderer 

25 "xhtmlOut": False, # Use '/' to close single tags (<br />) 

26 "breaks": False, # Convert '\n' in paragraphs into <br> 

27 "langPrefix": "language-", # CSS language prefix for fenced blocks 

28 # Highlighter function. Should return escaped HTML, 

29 # or '' if the source string is not changed and should be escaped externally. 

30 # If result starts with <pre... internal wrapper is skipped. 

31 # function (/*str, lang, attrs*/) { return ''; } 

32 "highlight": None, 

33 }, 

34 "components": { 

35 "core": {"rules": ["normalize", "block", "inline"]}, 

36 "block": {"rules": ["paragraph"]}, 

37 "inline": {"rules": ["text"], "rules2": ["balance_pairs", "text_collapse"]}, 

38 }, 

39 }