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

Method __init__

markdown_it/ruler.py:76–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74
75class Ruler(Generic[RuleFuncTv]):
76 def __init__(self) -> None:
77 # List of added rules.
78 self.__rules__: list[Rule[RuleFuncTv]] = []
79 # Cached rule chains.
80 # First level - chain name, '' for default.
81 # Second level - diginal anchor for fast filtering by charcodes.
82 self.__cache__: dict[str, list[RuleFuncTv]] | None = None
83
84 def __find__(self, name: str) -> int:
85 """Find rule index by name"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected