mirror of https://github.com/zulip/zulip.git
Don't match ** for strong across newlines
(imported from commit e3bc0b409bd99c3707746c23eb73e11342cfe178)
This commit is contained in:
parent
1201fc1144
commit
5d82dc5ce2
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue