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

Method is_root

markdown_it/tree.py:127–129  ·  view source on GitHub ↗

Is the node a special root node?

(self)

Source from the content-addressed store, hash-verified

125
126 @property
127 def is_root(self) -> bool:
128 """Is the node a special root node?"""
129 return not (self.token or self.nester_tokens)
130
131 @property
132 def is_nested(self) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected