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

Method _add_child

markdown_it/tree.py:189–196  ·  view source on GitHub ↗

Make a child node for `self`.

(
        self,
        tokens: Sequence[Token],
    )

Source from the content-addressed store, hash-verified

187 return None
188
189 def _add_child(
190 self,
191 tokens: Sequence[Token],
192 ) -> None:
193 """Make a child node for `self`."""
194 child = type(self)(tokens, create_root=False)
195 child.parent = self
196 self.children.append(child)
197
198 def _set_children_from_tokens(self, tokens: Sequence[Token]) -> None:
199 """Convert the token stream to a tree structure and set the resulting

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected