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

Method unknown_decl

markdown/htmlparser.py:347–349  ·  view source on GitHub ↗
(self, data: str)

Source from the content-addressed store, hash-verified

345 self.handle_empty_tag('<?{}?>'.format(data), is_block=True)
346
347 def unknown_decl(self, data: str):
348 end = ']]>' if data.startswith('CDATA[') else ']>'
349 self.handle_empty_tag('<![{}{}'.format(data, end), is_block=True)
350
351 def parse_pi(self, i: int) -> int:
352 if self.at_line_start() or self.intail:

Callers

nothing calls this directly

Calls 1

handle_empty_tagMethod · 0.95

Tested by

no test coverage detected