MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / __stashNode

Method __stashNode

markdown/treeprocessors.py:114–118  ·  view source on GitHub ↗

Add node to stash.

(self, node: etree.Element | str, type: str)

Source from the content-addressed store, hash-verified

112 return None, index + 1
113
114 def __stashNode(self, node: etree.Element | str, type: str) -> str:
115 """ Add node to stash. """
116 placeholder, id = self.__makePlaceholder(type)
117 self.stashed_nodes[id] = node
118 return placeholder
119
120 def __handleInline(self, data: str, patternIndex: int = 0) -> str:
121 """

Callers 1

__applyPatternMethod · 0.95

Calls 1

__makePlaceholderMethod · 0.95

Tested by

no test coverage detected