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

Method handle_charref

markdown/htmlparser.py:291–292  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

289 self.handle_empty_tag(self.get_starttag_text(), is_block=self.md.is_block_level(tag))
290
291 def handle_charref(self, name: str):
292 self.handle_empty_tag('&#{};'.format(name), is_block=False)
293
294 def handle_entityref(self, name: str):
295 self.handle_empty_tag('&{};'.format(name), is_block=False)

Callers

nothing calls this directly

Calls 1

handle_empty_tagMethod · 0.95

Tested by

no test coverage detected