Fix UnicodeEncodeError ascii decode error in markdown filter.
This commit is contained in:
parent
f3e5923737
commit
476142bb23
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ class Render(object):
|
||||||
|
|
||||||
styles_cache = {} # cache styles searching
|
styles_cache = {} # cache styles searching
|
||||||
html_text = markdown(markdown_text)
|
html_text = markdown(markdown_text)
|
||||||
xml_object = parseString('<html>%s</html>' % html_text)
|
xml_object = parseString('<html>%s</html>' % html_text.encode('ascii', 'xmlcharrefreplace'))
|
||||||
|
|
||||||
# Transform HTML tags as specified in transform_map
|
# Transform HTML tags as specified in transform_map
|
||||||
# Some tags may require extra attributes in ODT.
|
# Some tags may require extra attributes in ODT.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue