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

Method siblings

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

Get siblings of the node. Gets the whole group of siblings, including self.

(self: _NodeType)

Source from the content-addressed store, hash-verified

140
141 @property
142 def siblings(self: _NodeType) -> Sequence[_NodeType]:
143 """Get siblings of the node.
144
145 Gets the whole group of siblings, including self.
146 """
147 if not self.parent:
148 return [self]
149 return self.parent.children
150
151 @property
152 def type(self) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected