()
| 133 | |
| 134 | |
| 135 | def test_disable(): |
| 136 | md = MarkdownIt("zero").disable("inline") |
| 137 | assert md.get_active_rules() == { |
| 138 | "block": ["paragraph"], |
| 139 | "core": ["normalize", "block", "text_join"], |
| 140 | "inline": ["text"], |
| 141 | "inline2": ["balance_pairs", "fragments_join"], |
| 142 | } |
| 143 | md.disable(["text"]) |
| 144 | assert md.get_active_rules() == { |
| 145 | "block": ["paragraph"], |
| 146 | "core": ["normalize", "block", "text_join"], |
| 147 | "inline": [], |
| 148 | "inline2": ["balance_pairs", "fragments_join"], |
| 149 | } |
| 150 | |
| 151 | |
| 152 | def test_reset(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…