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

Method get_active_rules

markdown_it/main.py:151–158  ·  view source on GitHub ↗

Return the names of all active rules.

(self)

Source from the content-addressed store, hash-verified

149 return rules
150
151 def get_active_rules(self) -> dict[str, list[str]]:
152 """Return the names of all active rules."""
153 rules = {
154 chain: self[chain].ruler.get_active_rules()
155 for chain in ["core", "block", "inline"]
156 }
157 rules["inline2"] = self.inline.ruler2.get_active_rules()
158 return rules
159
160 def enable(
161 self, names: str | Iterable[str], ignoreInvalid: bool = False

Callers 3

reset_rulesMethod · 0.95
test_load_presetsFunction · 0.95
test_resetFunction · 0.95

Calls

no outgoing calls

Tested by 2

test_load_presetsFunction · 0.76
test_resetFunction · 0.76