bgneal@356: """ bgneal@356: A python-markdown extension to add support for . bgneal@356: The Markdown syntax is --this is deleted text--. bgneal@356: bgneal@356: """ bgneal@356: import markdown bgneal@356: bgneal@356: bgneal@360: DEL_RE = r'(---)(.*?)---' bgneal@356: bgneal@356: class DelExtension(markdown.Extension): bgneal@356: bgneal@356: def extendMarkdown(self, md, md_globals): bgneal@356: del_tag = markdown.inlinepatterns.SimpleTagPattern(DEL_RE, 'del') bgneal@356: md.inlinePatterns.add('del', del_tag, '>not_strong') bgneal@356: bgneal@356: bgneal@356: def makeExtension(configs=None): bgneal@356: return DelExtension(configs)