aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-06-13 13:10:04 -0700
committerWaylan Limberg <waylan@gmail.com>2011-06-13 13:10:04 -0700
commit749f5d1ff028c3361d89a98b0f80d57ca671e33f (patch)
treedca2fd059a72cd548cc6faee1336186e573f26d1
parent11124d9f8ddd547c93078dcf6380deacec7fc32f (diff)
downloadmarkdown-749f5d1ff028c3361d89a98b0f80d57ca671e33f.tar.gz
markdown-749f5d1ff028c3361d89a98b0f80d57ca671e33f.tar.bz2
markdown-749f5d1ff028c3361d89a98b0f80d57ca671e33f.zip
A few minor tweaks to the smart_strong extension. Thanks to David Chambers for pointing out the typo.
-rw-r--r--markdown/extensions/smart_strong.py4
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))