Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/executablebooks/markdown-it-py
/ get_active_rules
Method
get_active_rules
markdown_it/ruler.py:273–275 ·
view source on GitHub ↗
Return the active rule names.
(self)
Source
from the content-addressed store, hash-verified
271
return
[r.name
for
r in self.__rules__]
272
273
def
get_active_rules(self) -> list[str]:
274
""
"Return the active rule names."
""
275
return
[r.name
for
r in self.__rules__
if
r.enabled]
Callers
3
__init__
Method · 0.45
test_enable
Function · 0.45
test_disable
Function · 0.45
Calls
no outgoing calls
Tested by
2
test_enable
Function · 0.36
test_disable
Function · 0.36