| 1000 | return el, m.start(0), m.end(0) |
| 1001 | |
| 1002 | class AncestorExtension(markdown.Extension): |
| 1003 | |
| 1004 | def __init__(self, *args, **kwargs): |
| 1005 | """Initialize.""" |
| 1006 | |
| 1007 | self.config = {} |
| 1008 | |
| 1009 | def extendMarkdown(self, md): |
| 1010 | """Modify inline patterns.""" |
| 1011 | |
| 1012 | pattern = r'(\+)([^\+]+)\1' |
| 1013 | md.inlinePatterns.register(TestAncestorExclusion.AncestorExample(pattern, 'strong'), 'ancestor-test', 0) |
| 1014 | |
| 1015 | def setUp(self): |
| 1016 | """Setup markdown object.""" |
nothing calls this directly
no outgoing calls
no test coverage detected