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

Method handle_comment

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

Source from the content-addressed store, hash-verified

295 self.handle_empty_tag('&{};'.format(name), is_block=False)
296
297 def handle_comment(self, data: str):
298 # Check if the comment is unclosed, if so, we need to override position
299 self.handle_empty_tag('<!--{}-->'.format(data), is_block=True)
300
301 def handle_decl(self, data: str):
302 self.handle_empty_tag('<!{}>'.format(data), is_block=True)

Callers 1

parse_commentMethod · 0.95

Calls 1

handle_empty_tagMethod · 0.95

Tested by

no test coverage detected