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

Class AncestorExample

tests/test_apis.py:967–976  ·  view source on GitHub ↗

Ancestor Test.

Source from the content-addressed store, hash-verified

965 """ Tests exclusion of tags in ancestor list. """
966
967 class AncestorExample(markdown.inlinepatterns.SimpleTagInlineProcessor):
968 """ Ancestor Test. """
969
970 ANCESTOR_EXCLUDES = ('a',)
971
972 def handleMatch(self, m, data):
973 """ Handle match. """
974 el = etree.Element(self.tag)
975 el.text = m.group(2)
976 return el, m.start(0), m.end(0)
977
978 class AncestorExtension(markdown.Extension):
979

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected