Don't match ** for strong across newlines

(imported from commit e3bc0b409bd99c3707746c23eb73e11342cfe178)
This commit is contained in:
Leo Franchi 2013-02-14 11:45:04 -05:00
parent 1201fc1144
commit 5d82dc5ce2
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class Bugdown(markdown.Extension):
# Custom bold syntax: **foo** but not __foo__
md.inlinePatterns.add('strong',
markdown.inlinepatterns.SimpleTagPattern(r'(\*\*)(.+?)\2', 'strong'),
markdown.inlinepatterns.SimpleTagPattern(r'(\*\*)([^\n]+?)\2', 'strong'),
'>not_strong')
for k in ('hashheader', 'setextheader', 'olist', 'ulist'):