Fix proposed to crash in linux on import markdown module
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from markdown2 import *
|
from .markdown2 import *
|
||||||
from gluon.html import XML
|
from gluon.html import XML
|
||||||
|
|
||||||
def WIKI(text, encoding="utf8", safe_mode='escape', html4tags=False, **attributes):
|
def WIKI(text, encoding="utf8", safe_mode='escape', html4tags=False, **attributes):
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||||
|
|
||||||
from __future__ import generators
|
from __future__ import generators
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
r"""A fast and complete Python implementation of Markdown.
|
r"""A fast and complete Python implementation of Markdown.
|
||||||
|
|
||||||
@@ -35,7 +36,6 @@ This implementation of Markdown implements the full "core" syntax plus a
|
|||||||
number of extras (e.g., code syntax coloring, footnotes) as described on
|
number of extras (e.g., code syntax coloring, footnotes) as described on
|
||||||
<https://github.com/trentm/python-markdown2/wiki/Extras>.
|
<https://github.com/trentm/python-markdown2/wiki/Extras>.
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
cmdln_desc = """A fast and complete Python implementation of Markdown, a
|
cmdln_desc = """A fast and complete Python implementation of Markdown, a
|
||||||
text-to-HTML conversion tool for web writers.
|
text-to-HTML conversion tool for web writers.
|
||||||
|
|||||||
Reference in New Issue
Block a user