aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2014-06-08 15:50:02 +0400
committerDmitry Shachnev <mitya57@gmail.com>2014-06-08 15:50:02 +0400
commitcd076d004e9a666c0d3e179371de40cb6ca466d2 (patch)
treebb5ccd804024f1827c83d0474f3f7d50f24b98c1
parent8be0d1f517a0857b69763fd3bad1875badede2d2 (diff)
downloadmarkdown-cd076d004e9a666c0d3e179371de40cb6ca466d2.tar.gz
markdown-cd076d004e9a666c0d3e179371de40cb6ca466d2.tar.bz2
markdown-cd076d004e9a666c0d3e179371de40cb6ca466d2.zip
Fix #315: Change order of smarty patterns to make the test pass again
-rw-r--r--markdown/extensions/smarty.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/smarty.py b/markdown/extensions/smarty.py
index 6f15d2c..21f30a4 100644
--- a/markdown/extensions/smarty.py
+++ b/markdown/extensions/smarty.py
@@ -182,12 +182,12 @@ class SmartyExtension(Extension):
def extendMarkdown(self, md, md_globals):
configs = self.getConfigs()
self.inlinePatterns = OrderedDict()
+ if configs['smart_ellipses']:
+ self.educateEllipses(md)
if configs['smart_quotes']:
self.educateQuotes(md)
if configs['smart_dashes']:
self.educateDashes(md)
- if configs['smart_ellipses']:
- self.educateEllipses(md)
inlineProcessor = InlineProcessor(md)
inlineProcessor.inlinePatterns = self.inlinePatterns
md.treeprocessors.add('smarty', inlineProcessor, '_end')