Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: cms/converters.py

Issue 29331049: Issue 3354 - Enable extras module for Markdown inside HTML blocks (Closed)
Patch Set: Created Nov. 26, 2015, 1:29 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cms/converters.py
diff --git a/cms/converters.py b/cms/converters.py
index 0ad557f94a56c721fa160eddb2ca12eb5ed056b6..d554d347258a04cb4cbb117d251511d41aa40d6f 100644
--- a/cms/converters.py
+++ b/cms/converters.py
@@ -310,7 +310,8 @@ class MarkdownConverter(Converter):
for key, value in html_escapes.iteritems():
escapes[key] = value
- md = markdown.Markdown(output="html5", extensions=["attr_list"])
+ md = markdown.Markdown(output="html5",
+ extensions=["attr_list", "markdown.extensions.extra"])
saroyanm 2015/11/26 13:49:50 According to documentation extra extension include
kzar 2015/11/26 14:01:34 I read the documentation differently, but I gave i
Sebastian Noack 2015/11/26 14:23:51 Well, this is weird, but seems to be right. While
saroyanm 2015/11/26 14:29:48 Yes I also had a doubt initially, they formulated
md.preprocessors["html_block"].markdown_in_raw = True
def to_html(s):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld