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: Removed redundant attr_list extension, updated README Created Nov. 26, 2015, 1:59 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
« README.md ('K') | « README.md ('k') | 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..e6ffac81c6eb8546dc2725d6d85dc0a89e0082ef 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=["markdown.extensions.extra"])
Sebastian Noack 2015/11/26 14:23:51 Do we actually have to use the long form for "extr
kzar 2015/11/26 14:41:24 No, just tested it and "extra" works fine. Done.
md.preprocessors["html_block"].markdown_in_raw = True
def to_html(s):
« README.md ('K') | « README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld