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

Method __init__

markdown/treeprocessors.py:80–88  ·  view source on GitHub ↗
(self, md: Markdown)

Source from the content-addressed store, hash-verified

78 """
79
80 def __init__(self, md: Markdown):
81 self.__placeholder_prefix = util.INLINE_PLACEHOLDER_PREFIX
82 self.__placeholder_suffix = util.ETX
83 self.__placeholder_length = 4 + len(self.__placeholder_prefix) \
84 + len(self.__placeholder_suffix)
85 self.__placeholder_re = util.INLINE_PLACEHOLDER_RE
86 self.md = md
87 self.inlinePatterns = md.inlinePatterns
88 self.ancestors: list[str] = []
89
90 def __makePlaceholder(self, type: str) -> tuple[str, str]:
91 """ Generate a placeholder """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected