diff options
-rw-r--r-- | markdown/extensions/smart_strong.py | 4 |
1 files 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)) |