diff --git a/isso/utils/html.py b/isso/utils/html.py index 1f5f8cd..8ed5738 100644 --- a/isso/utils/html.py +++ b/isso/utils/html.py @@ -72,7 +72,7 @@ def Markdown(extensions=("strikethrough", "superscript", "autolink")): md = misaka.Markdown(Unofficial(), extensions=flags) def inner(text): - rv = md.render(text).rstrip("\n") + rv = md(text).rstrip("\n") if rv.startswith("

") or rv.endswith("

"): return rv return "

" + rv + "

" diff --git a/setup.py b/setup.py index ef866fe..5b90acb 100644 --- a/setup.py +++ b/setup.py @@ -5,8 +5,8 @@ import sys from setuptools import setup, find_packages -requires = ['html5lib==0.9999999', 'itsdangerous', 'Jinja2', - 'misaka>=1.0,<2.0', 'werkzeug>=0.9'] +requires = ['itsdangerous', 'Jinja2', 'misaka>=2.0,<3.0', 'html5lib<0.9999999', + 'werkzeug>=0.9'] if sys.version_info < (2, 7): raise SystemExit("Python 2 versions < 2.7 are not supported.")