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

Method __makePlaceholder

markdown/treeprocessors.py:90–94  ·  view source on GitHub ↗

Generate a placeholder

(self, type: str)

Source from the content-addressed store, hash-verified

88 self.ancestors: list[str] = []
89
90 def __makePlaceholder(self, type: str) -> tuple[str, str]:
91 """ Generate a placeholder """
92 id = "%04d" % len(self.stashed_nodes)
93 hash = util.INLINE_PLACEHOLDER % id
94 return hash, id
95
96 def __findPlaceholder(self, data: str, index: int) -> tuple[str | None, int]:
97 """

Callers 1

__stashNodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected