diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-06-15 08:51:47 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-06-15 08:51:47 -0400 |
commit | f6ab9657aa75d5fa503375ac88ac5f15f8c53b82 (patch) | |
tree | 9bafd65b3f980ae3ab7f723d02d0682e2f1435c5 | |
parent | 8a64c2970ca99f1586bc85a59898bfe7269c9128 (diff) | |
parent | 749f5d1ff028c3361d89a98b0f80d57ca671e33f (diff) | |
download | markdown-f6ab9657aa75d5fa503375ac88ac5f15f8c53b82.tar.gz markdown-f6ab9657aa75d5fa503375ac88ac5f15f8c53b82.tar.bz2 markdown-f6ab9657aa75d5fa503375ac88ac5f15f8c53b82.zip |
Merge branch 'master' of https://github.com/waylan/Python-Markdown
-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)) |