bugdown: Remove special treatment of backslash

Fixes #562.

(imported from commit aa39cf390ef44275c7d5a84ca954c75535d372b1)
This commit is contained in:
Keegan McAllister 2012-12-11 15:19:15 -05:00
parent 695d9a4dc6
commit b283123382
1 changed files with 3 additions and 2 deletions

View File

@ -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.