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

Method parse_pi

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

Source from the content-addressed store, hash-verified

269 self.handle_data(data)
270
271 def parse_pi(self, i: int) -> int:
272 if self.at_line_start() or self.intail or self.mdstack:
273 # The same override exists in `HTMLExtractor` without the check
274 # for `mdstack`. Therefore, use parent of `HTMLExtractor` instead.
275 return super(HTMLExtractor, self).parse_pi(i)
276 # This is not the beginning of a raw block so treat as plain data
277 # and avoid consuming any tags which may follow (see #1066).
278 self.handle_data('<?')
279 return i + 2
280
281 def parse_html_declaration(self, i: int) -> int:
282 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