diff options
author | Waylan Limberg <waylan@gmail.com> | 2010-07-07 11:50:41 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2010-07-07 11:50:41 -0400 |
commit | 9b1de64b9e4a049f3fd5c9efc343f0e37f7ce457 (patch) | |
tree | 7e37c4df91f008c0dbf58718d15a955b9d4b376d /markdown/inlinepatterns.py | |
parent | a33a04439905851b5b1a5db4104ec3a11b4ab1d3 (diff) | |
download | markdown-9b1de64b9e4a049f3fd5c9efc343f0e37f7ce457.tar.gz markdown-9b1de64b9e4a049f3fd5c9efc343f0e37f7ce457.tar.bz2 markdown-9b1de64b9e4a049f3fd5c9efc343f0e37f7ce457.zip |
A better implementation of globals as attributes on the Markdown class. This should be more future proof.
Diffstat (limited to 'markdown/inlinepatterns.py')
-rw-r--r-- | markdown/inlinepatterns.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py index 7a78b5e..e4a9dd7 100644 --- a/markdown/inlinepatterns.py +++ b/markdown/inlinepatterns.py @@ -72,7 +72,7 @@ def build_inlinepatterns(md_instance, **kwargs): inlinePatterns["strong_em"] = DoubleTagPattern(STRONG_EM_RE, 'strong,em') inlinePatterns["strong"] = SimpleTagPattern(STRONG_RE, 'strong') inlinePatterns["emphasis"] = SimpleTagPattern(EMPHASIS_RE, 'em') - if md_instance.SMART_EMPHASIS: + if md_instance.smart_emphasis: inlinePatterns["emphasis2"] = SimpleTagPattern(SMART_EMPHASIS_RE, 'em') else: inlinePatterns["emphasis2"] = SimpleTagPattern(EMPHASIS_2_RE, 'em') @@ -311,7 +311,7 @@ class ImagePattern(LinkPattern): if len(src_parts) > 1: el.set('title', dequote(" ".join(src_parts[1:]))) - if self.markdown.ENABLE_ATTRIBUTES: + if self.markdown.enable_attributes: truealt = handleAttributes(m.group(2), el) else: truealt = m.group(2) |