From 9b1de64b9e4a049f3fd5c9efc343f0e37f7ce457 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 7 Jul 2010 11:50:41 -0400 Subject: A better implementation of globals as attributes on the Markdown class. This should be more future proof. --- markdown/inlinepatterns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'markdown/inlinepatterns.py') 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) -- cgit v1.2.3