()
| 47 | |
| 48 | |
| 49 | def test_load_presets(): |
| 50 | md = MarkdownIt("zero") |
| 51 | assert md.get_active_rules() == { |
| 52 | "block": ["paragraph"], |
| 53 | "core": ["normalize", "block", "inline", "text_join"], |
| 54 | "inline": ["text"], |
| 55 | "inline2": ["balance_pairs", "fragments_join"], |
| 56 | } |
| 57 | md = MarkdownIt("commonmark") |
| 58 | assert md.get_active_rules() == { |
| 59 | "core": ["normalize", "block", "inline", "text_join"], |
| 60 | "block": [ |
| 61 | "code", |
| 62 | "fence", |
| 63 | "blockquote", |
| 64 | "hr", |
| 65 | "list", |
| 66 | "reference", |
| 67 | "html_block", |
| 68 | "heading", |
| 69 | "lheading", |
| 70 | "paragraph", |
| 71 | ], |
| 72 | "inline": [ |
| 73 | "text", |
| 74 | "newline", |
| 75 | "escape", |
| 76 | "backticks", |
| 77 | "emphasis", |
| 78 | "link", |
| 79 | "image", |
| 80 | "autolink", |
| 81 | "html_inline", |
| 82 | "entity", |
| 83 | ], |
| 84 | "inline2": ["balance_pairs", "emphasis", "fragments_join"], |
| 85 | } |
| 86 | |
| 87 | |
| 88 | def test_override_options(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…