comparison tools/mdx_del.py @ 360:2e90b63520b8

Trying to fix #180 again. Changed the syntax for strikethrough to 3 dashes to make it less harder to do accidently.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 Mar 2011 02:30:53 +0000
parents f54bf3b3bece
children
comparison
equal deleted inserted replaced
359:e877b9c05740 360:2e90b63520b8
4 4
5 """ 5 """
6 import markdown 6 import markdown
7 7
8 8
9 DEL_RE = r'(--)(.*?)--' 9 DEL_RE = r'(---)(.*?)---'
10 10
11 class DelExtension(markdown.Extension): 11 class DelExtension(markdown.Extension):
12 12
13 def extendMarkdown(self, md, md_globals): 13 def extendMarkdown(self, md, md_globals):
14 del_tag = markdown.inlinepatterns.SimpleTagPattern(DEL_RE, 'del') 14 del_tag = markdown.inlinepatterns.SimpleTagPattern(DEL_RE, 'del')