Index: cms/converters.py |
=================================================================== |
--- a/cms/converters.py |
+++ b/cms/converters.py |
@@ -322,17 +322,19 @@ |
def get_html(self, source, filename): |
def remove_unnecessary_entities(match): |
char = unichr(int(match.group(1))) |
if char in html_escapes: |
return match.group(0) |
return char |
escapes = {} |
- md = markdown.Markdown(output='html5', extensions=['extra']) |
+ md = markdown.Markdown(output='html5', extensions=[ |
+ 'markdown.extensions.extra', |
+ ]) |
for char in md.ESCAPED_CHARS: |
escapes[char] = '&#{};'.format(str(ord(char))) |
for key, value in html_escapes.iteritems(): |
escapes[key] = value |
md.preprocessors['html_block'].markdown_in_raw = True |
def to_html(s): |