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

Method __init__

markdown/extensions/md_in_html.py:43–51  ·  view source on GitHub ↗
(self, md: Markdown, *args, **kwargs)

Source from the content-addressed store, hash-verified

41 """
42
43 def __init__(self, md: Markdown, *args, **kwargs):
44 # Block-level tags in which the content only gets span level parsing
45 self.span_tags = set(
46 ['address', 'dd', 'dt', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'legend', 'li', 'p', 'summary', 'td', 'th']
47 )
48 # Block-level tags which never get their content parsed.
49 self.raw_tags = set(['canvas', 'math', 'option', 'pre', 'script', 'style', 'textarea'])
50
51 super().__init__(md, *args, **kwargs)
52
53 @property
54 def block_level_tags(self) -> set[str]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected