Update to misaka 2.0

Fixes #208
This commit is contained in:
Steffen Prince 2015-10-28 19:39:57 -07:00 committed by Benoît Latinier
parent ce98f93934
commit c38851a6cd
2 changed files with 3 additions and 3 deletions

View File

@ -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("<p>") or rv.endswith("</p>"):
return rv
return "<p>" + rv + "</p>"

View File

@ -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.")