diff options
Diffstat (limited to 'creole/__init__.py')
-rw-r--r-- | creole/__init__.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/creole/__init__.py b/creole/__init__.py index 6594f9d..3c6a113 100644 --- a/creole/__init__.py +++ b/creole/__init__.py @@ -7,18 +7,18 @@ :homepage: http://code.google.com/p/python-creole/ - + :sourcecode: http://github.com/jedie/python-creole - + :PyPi: http://pypi.python.org/pypi/python-creole/ - :copyleft: 2008-2015 by python-creole team, see AUTHORS for more details. + :copyleft: 2008-2020 by python-creole team, see AUTHORS for more details. :license: GNU GPL v3 or above, see LICENSE for more details. """ -from __future__ import division, absolute_import, print_function, unicode_literals + import warnings @@ -31,7 +31,7 @@ from creole.parser.html_parser import HtmlParser from creole.py3compat import TEXT_TYPE -__version__ = "1.3.2" +__version__ = "1.4.0" __api__ = "1.0" # Creole 1.0 spec - http://wikicreole.org/ VERSION_STRING = __version__ # remove in future @@ -49,7 +49,7 @@ def creole2html(markup_string, debug=False, >>> creole2html('This is **creole //markup//**!') '<p>This is <strong>creole <i>markup</i></strong>!</p>' - + Info: parser_kwargs and emitter_kwargs are deprecated """ assert isinstance(markup_string, TEXT_TYPE), "given markup_string must be unicode!" @@ -57,6 +57,7 @@ def creole2html(markup_string, debug=False, parser_kwargs2 = { "block_rules": block_rules, "blog_line_breaks": blog_line_breaks, + "debug": debug, } if parser_kwargs is not None: warnings.warn("parser_kwargs argument in creole2html would be removed in the future!", PendingDeprecationWarning) @@ -130,7 +131,7 @@ def html2textile(html_string, debug=False, ): """ convert html code into textile markup - + >>> html2textile('<p>This is <strong>textile <i>markup</i></strong>!</p>') 'This is *textile __markup__*!' """ @@ -157,7 +158,7 @@ def html2rest(html_string, debug=False, ): """ convert html code into ReStructuredText markup - + >>> html2rest('<p>This is <strong>ReStructuredText</strong> <em>markup</em>!</p>') 'This is **ReStructuredText** *markup*!' """ |