Update version numbers and changelog.
This commit is contained in:
@@ -5,11 +5,13 @@ Changelog
|
||||
|
||||
Date format is year-month-day.
|
||||
|
||||
2.0.1 (2015-??-??)
|
||||
2.0.1 (2017-01-15)
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
|
||||
- Add Python 2.6 support. (`#48`_)
|
||||
- Add a new renderer class with XSS protections. By Changaco. (`#60`_)
|
||||
- Add Python 2.6 support. By sprin. (`#48`_)
|
||||
|
||||
.. _#60: https://github.com/FSX/misaka/pull/60
|
||||
.. _#48: https://github.com/FSX/misaka/pull/48
|
||||
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'Misaka'
|
||||
copyright = u'2011-2015, Frank Smit'
|
||||
copyright = u'2011-2017, Frank Smit'
|
||||
author = u'Frank Smit'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
@@ -61,9 +61,9 @@ author = u'Frank Smit'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '2.0.0'
|
||||
version = '2.1.0'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '2.0.0'
|
||||
release = '2.1.0'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
||||
@@ -81,6 +81,7 @@ def escape_html(text, escape_slash=False):
|
||||
' --> '
|
||||
/ --> / when escape_slash is set to True
|
||||
|
||||
.. versionadded:: 2.1.0
|
||||
"""
|
||||
byte_str = text.encode('utf-8')
|
||||
ob = lib.hoedown_buffer_new(OUNIT)
|
||||
@@ -287,6 +288,8 @@ class SaferHtmlRenderer(HtmlRenderer):
|
||||
|
||||
link_rewrite='https://example.com/redirect?url={url}',
|
||||
img_src_rewrite='https://img-proxy-domain/{url}'
|
||||
|
||||
.. versionadded:: 2.1.0
|
||||
"""
|
||||
_allowed_url_re = re.compile(r'^https?:', re.I)
|
||||
|
||||
|
||||
3
setup.py
3
setup.py
@@ -41,7 +41,7 @@ class TestCommand(Command):
|
||||
|
||||
setup(
|
||||
name='misaka',
|
||||
version='2.0.0',
|
||||
version='2.1.0',
|
||||
description='A CFFI binding for Hoedown, a markdown parsing library.',
|
||||
author='Frank Smit',
|
||||
author_email='frank@61924.nl',
|
||||
@@ -64,6 +64,7 @@ setup(
|
||||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: Implementation :: CPython',
|
||||
'Programming Language :: Python :: Implementation :: PyPy',
|
||||
'Topic :: Text Processing :: Markup',
|
||||
|
||||
Reference in New Issue
Block a user