From 749f5d1ff028c3361d89a98b0f80d57ca671e33f Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Mon, 13 Jun 2011 13:10:04 -0700 Subject: A few minor tweaks to the smart_strong extension. Thanks to David Chambers for pointing out the typo. --- markdown/extensions/smart_strong.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown/extensions/smart_strong.py b/markdown/extensions/smart_strong.py index 4fb3280..0be40ed 100644 --- a/markdown/extensions/smart_strong.py +++ b/markdown/extensions/smart_strong.py @@ -2,7 +2,7 @@ Smart_Strong Extension for Python-Markdown ========================================== -This extention as a smarter handleing of double underscores within words. +This extention adds smarter handling of double underscores within words. Simple Usage: @@ -35,7 +35,7 @@ class SmartEmphasisExtension(markdown.extensions.Extension): def extendMarkdown(self, md, md_globals): """ Modify inline patterns. """ md.inlinePatterns['strong'] = SimpleTagPattern(STRONG_RE, 'strong') - md.inlinePatterns['strong2'] = SimpleTagPattern(SMART_STRONG_RE, 'strong') + md.inlinePatterns.add('strong2', SimpleTagPattern(SMART_STRONG_RE, 'strong'), '>emphasis2') def makeExtension(configs={}): return SmartEmphasisExtension(configs=dict(configs)) -- cgit v1.2.3