MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / parse_pi

Method parse_pi

markdown/htmlparser.py:311–317  ·  view source on GitHub ↗
(self, i: int)

Source from the content-addressed store, hash-verified

309 self.handle_empty_tag('<![{}{}'.format(data, end), is_block=True)
310
311 def parse_pi(self, i: int) -> int:
312 if self.at_line_start() or self.intail:
313 return super().parse_pi(i)
314 # This is not the beginning of a raw block so treat as plain data
315 # and avoid consuming any tags which may follow (see #1066).
316 self.handle_data('<?')
317 return i + 2
318
319 # Internal -- parse comment, return length or -1 if not terminated
320 # see https://html.spec.whatwg.org/multipage/parsing.html#comment-start-state

Callers

nothing calls this directly

Calls 2

at_line_startMethod · 0.95
handle_dataMethod · 0.95

Tested by

no test coverage detected