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

Method parse_pi

markdown/extensions/md_in_html.py:281–289  ·  view source on GitHub ↗
(self, i: int)

Source from the content-addressed store, hash-verified

279 self.handle_data(data)
280
281 def parse_pi(self, i: int) -> int:
282 if self.at_line_start() or self.intail or self.mdstack:
283 # The same override exists in `HTMLExtractor` without the check
284 # for `mdstack`. Therefore, use parent of `HTMLExtractor` instead.
285 return super(HTMLExtractor, self).parse_pi(i)
286 # This is not the beginning of a raw block so treat as plain data
287 # and avoid consuming any tags which may follow (see #1066).
288 self.handle_data('<?')
289 return i + 2
290
291 def parse_html_declaration(self, i: int) -> int:
292 if self.at_line_start() or self.intail or self.mdstack:

Callers

nothing calls this directly

Calls 2

handle_dataMethod · 0.95
at_line_startMethod · 0.80

Tested by

no test coverage detected