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

Method get_all_rules

markdown_it/main.py:142–149  ·  view source on GitHub ↗

Return the names of all active rules.

(self)

Source from the content-addressed store, hash-verified

140 return self
141
142 def get_all_rules(self) -> dict[str, list[str]]:
143 """Return the names of all active rules."""
144 rules = {
145 chain: self[chain].ruler.get_all_rules()
146 for chain in ["core", "block", "inline"]
147 }
148 rules["inline2"] = self.inline.ruler2.get_all_rules()
149 return rules
150
151 def get_active_rules(self) -> dict[str, list[str]]:
152 """Return the names of all active rules."""

Callers 1

test_get_rulesFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_get_rulesFunction · 0.76