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

Class AncestorExample

tests/test_apis.py:932–941  ·  view source on GitHub ↗

Ancestor Test.

Source from the content-addressed store, hash-verified

930 """ Tests exclusion of tags in ancestor list. """
931
932 class AncestorExample(markdown.inlinepatterns.SimpleTagInlineProcessor):
933 """ Ancestor Test. """
934
935 ANCESTOR_EXCLUDES = ('a',)
936
937 def handleMatch(self, m, data):
938 """ Handle match. """
939 el = etree.Element(self.tag)
940 el.text = m.group(2)
941 return el, m.start(0), m.end(0)
942
943 class AncestorExtension(markdown.Extension):
944

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected