diff --git a/.travis.yml b/.travis.yml index f4e6810..90c5c1e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ -dist: xenial language: python python: - 3.6 - 3.7 + - 3.8 install: - pip install .[dev] diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f90cf73..f362c3b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,15 +1,17 @@ Changelog ######### -next -==== +0.3 (May 21, 2020) +================== -* Fix escaping HTML entities in text (e.g. convert < to <). -* Better support for paragraphs. +* Fix escaping HTML entities in text (e.g. convert ``<`` to ``<``). +* Handling of paragraphs and multiple line breaks has been greatly improved. * Links now include a ``title`` attribute and are properly capitalized. * Properly handle self-closing tags (e.g. ``
``). -* Properly strip comments instead of propagating them to the output. +* Descriptions lists with details are properly handled. +* Comments are ignored instead of propagating them to the output. * The composer no longer supports a streaming interface. +* Basic type hints are included. 0.2.1 (June 26, 2019) ===================== diff --git a/mwcomposerfromhell/composer.py b/mwcomposerfromhell/composer.py index 5c2ad1b..b1684b9 100644 --- a/mwcomposerfromhell/composer.py +++ b/mwcomposerfromhell/composer.py @@ -76,7 +76,7 @@ def __init__(self, # The base URL should be the root that articles sit in. self._base_url = base_url.rstrip('/') - self._pending_lists = [] # type: List[Tuple[str, str]] + self._pending_lists = [] # type: List[str] # Track the currently open tags. self._stack = [] # type: List[str] diff --git a/setup.py b/setup.py index 46f7201..fc11bf3 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def long_description(): setup( name='mwcomposerfromhell', - version='0.2.2dev', + version='0.3', packages=find_packages(exclude=('tests', )), description='Convert the parsed MediaWiki wikicode (using mwparserfromhell) to HTML.', long_description=long_description(), @@ -25,6 +25,7 @@ def long_description(): 'Programming Language :: Python', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: ISC License (ISCL)', ], install_requires=[