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