()
| 3 | |
| 4 | |
| 5 | def test_get_rules(): |
| 6 | md = MarkdownIt("zero") |
| 7 | # print(md.get_all_rules()) |
| 8 | assert md.get_all_rules() == { |
| 9 | "core": [ |
| 10 | "normalize", |
| 11 | "block", |
| 12 | "inline", |
| 13 | "linkify", |
| 14 | "replacements", |
| 15 | "smartquotes", |
| 16 | "text_join", |
| 17 | ], |
| 18 | "block": [ |
| 19 | "table", |
| 20 | "code", |
| 21 | "fence", |
| 22 | "blockquote", |
| 23 | "hr", |
| 24 | "list", |
| 25 | "reference", |
| 26 | "html_block", |
| 27 | "heading", |
| 28 | "lheading", |
| 29 | "paragraph", |
| 30 | ], |
| 31 | "inline": [ |
| 32 | "text", |
| 33 | "linkify", |
| 34 | "newline", |
| 35 | "escape", |
| 36 | "backticks", |
| 37 | "strikethrough", |
| 38 | "emphasis", |
| 39 | "link", |
| 40 | "image", |
| 41 | "autolink", |
| 42 | "html_inline", |
| 43 | "entity", |
| 44 | ], |
| 45 | "inline2": ["balance_pairs", "strikethrough", "emphasis", "fragments_join"], |
| 46 | } |
| 47 | |
| 48 | |
| 49 | def test_load_presets(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…