Ancestor Test.
| 989 | """ Tests exclusion of tags in ancestor list. """ |
| 990 | |
| 991 | class AncestorExample(markdown.inlinepatterns.SimpleTagInlineProcessor): |
| 992 | """ Ancestor Test. """ |
| 993 | |
| 994 | ANCESTOR_EXCLUDES = ('a',) |
| 995 | |
| 996 | def handleMatch(self, m, data): |
| 997 | """ Handle match. """ |
| 998 | el = etree.Element(self.tag) |
| 999 | el.text = m.group(2) |
| 1000 | return el, m.start(0), m.end(0) |
| 1001 | |
| 1002 | class AncestorExtension(markdown.Extension): |
| 1003 |
nothing calls this directly
no outgoing calls
no test coverage detected