mirror of https://github.com/zulip/zulip.git
bugdown: Remove special treatment of backslash
Fixes #562. (imported from commit aa39cf390ef44275c7d5a84ca954c75535d372b1)
This commit is contained in:
parent
695d9a4dc6
commit
b283123382
|
@ -93,7 +93,8 @@ class Bugdown(markdown.Extension):
|
|||
del md.preprocessors['reference']
|
||||
|
||||
for k in ('image_link', 'image_reference', 'automail',
|
||||
'autolink', 'link', 'reference', 'short_reference'):
|
||||
'autolink', 'link', 'reference', 'short_reference',
|
||||
'escape'):
|
||||
del md.inlinePatterns[k]
|
||||
|
||||
for k in ('hashheader', 'setextheader', 'olist', 'ulist'):
|
||||
|
@ -102,7 +103,7 @@ class Bugdown(markdown.Extension):
|
|||
md.parser.blockprocessors.add('ulist', UListProcessor(md.parser), '>hr')
|
||||
|
||||
md.inlinePatterns.add('gravatar', Gravatar(r'!gravatar\((?P<email>[^)]*)\)'), '_begin')
|
||||
md.inlinePatterns.add('link', LinkPattern(markdown.inlinepatterns.LINK_RE, md), '>escape')
|
||||
md.inlinePatterns.add('link', LinkPattern(markdown.inlinepatterns.LINK_RE, md), '>backtick')
|
||||
|
||||
# A link starts at a word boundary, and ends at space or end-of-input.
|
||||
# But any trailing punctuation (other than /) is not included.
|
||||
|
|
Loading…
Reference in New Issue