Skip to content

markdown bug fix

vjs22334 edited this page Apr 7, 2019 · 1 revision

go to python3.5/site-packages/markdownx/utils.py
Find function markdownify

which would look like -

def markdownify(content):
md = markdown(
text=content,
extensions=MARKDOWNX_MARKDOWN_EXTENSIONS,
extension_configs=MARKDOWNX_MARKDOWN_EXTENSION_CONFIGS
)
return md
Change this to

def markdownify(content):
import mistletoe
rendered = mistletoe.markdown(str(content))
return rendered
mistletoe has been added in requirements.txt

Clone this wiki locally