Ancestor Test.
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected