Hello community, here is the log from the commit of package python-mistune for openSUSE:Factory checked in at 2017-12-12 21:19:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mistune (Old) and /work/SRC/openSUSE:Factory/.python-mistune.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mistune" Tue Dec 12 21:19:46 2017 rev:5 rq:556404 version:0.8.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mistune/python-mistune.changes 2017-11-11 14:17:49.823104822 +0100 +++ /work/SRC/openSUSE:Factory/.python-mistune.new/python-mistune.changes 2017-12-12 21:19:50.859470063 +0100 @@ -1,0 +2,20 @@ +Mon Dec 11 21:52:37 UTC 2017 - jeng...@inai.de + +- Remove bias from description. + +------------------------------------------------------------------- +Wed Dec 6 03:04:08 UTC 2017 - a...@gmx.de + +- update to version 0.8.3: + * Fix nested html issue. #137 + +- changes from version 0.8.2: + * Fix _keyify with lower case. + +------------------------------------------------------------------- +Wed Nov 8 19:01:39 UTC 2017 - a...@gmx.de + +- update to version 0.8.1 bsc#1072307: + * Security fix CVE-2017-16876, thanks Dawid Czarnecki + +------------------------------------------------------------------- Old: ---- mistune-0.8.tar.gz New: ---- mistune-0.8.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mistune.spec ++++++ --- /var/tmp/diff_new_pack.4hmUIE/_old 2017-12-12 21:19:51.507438783 +0100 +++ /var/tmp/diff_new_pack.4hmUIE/_new 2017-12-12 21:19:51.507438783 +0100 @@ -18,9 +18,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-mistune -Version: 0.8 +Version: 0.8.3 Release: 0 -Summary: The fastest markdown parser in pure Python +Summary: A markdown parser in pure Python License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/lepture/mistune @@ -36,7 +36,7 @@ %python_subpackages %description -The fastest markdown parser in pure Python, inspired by marked. +A markdown parser in pure Python, inspired by marked. %prep %setup -q -n mistune-%{version} ++++++ mistune-0.8.tar.gz -> mistune-0.8.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-0.8/CHANGES.rst new/mistune-0.8.3/CHANGES.rst --- old/mistune-0.8/CHANGES.rst 2017-10-26 19:02:20.000000000 +0200 +++ new/mistune-0.8.3/CHANGES.rst 2017-12-04 06:01:05.000000000 +0100 @@ -3,6 +3,31 @@ Here is the full history of mistune. +Version 0.8.3 +~~~~~~~~~~~~~ + +Relased on Dec. 04, 2017 + +* Fix nested html issue. `#137`_ + +.. _`#137`: https://github.com/lepture/mistune/pull/137 + + +Version 0.8.2 +~~~~~~~~~~~~~ + +Relased on Dec. 04, 2017 + +* Fix ``_keyify`` with lower case. + + +Version 0.8.1 +~~~~~~~~~~~~~ + +Released on Nov. 07, 2017 + +* Security fix CVE-2017-16876, thanks Dawid Czarnecki + Version 0.8 ~~~~~~~~~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-0.8/PKG-INFO new/mistune-0.8.3/PKG-INFO --- old/mistune-0.8/PKG-INFO 2017-10-26 19:06:08.000000000 +0200 +++ new/mistune-0.8.3/PKG-INFO 2017-12-04 06:02:33.000000000 +0100 @@ -1,11 +1,12 @@ Metadata-Version: 1.1 Name: mistune -Version: 0.8 +Version: 0.8.3 Summary: The fastest markdown parser in pure Python Home-page: https://github.com/lepture/mistune Author: Hsiaoming Yang Author-email: m...@lepture.com License: BSD +Description-Content-Type: UNKNOWN Description: Mistune ======= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-0.8/mistune.egg-info/PKG-INFO new/mistune-0.8.3/mistune.egg-info/PKG-INFO --- old/mistune-0.8/mistune.egg-info/PKG-INFO 2017-10-26 19:06:08.000000000 +0200 +++ new/mistune-0.8.3/mistune.egg-info/PKG-INFO 2017-12-04 06:02:33.000000000 +0100 @@ -1,11 +1,12 @@ Metadata-Version: 1.1 Name: mistune -Version: 0.8 +Version: 0.8.3 Summary: The fastest markdown parser in pure Python Home-page: https://github.com/lepture/mistune Author: Hsiaoming Yang Author-email: m...@lepture.com License: BSD +Description-Content-Type: UNKNOWN Description: Mistune ======= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-0.8/mistune.py new/mistune-0.8.3/mistune.py --- old/mistune-0.8/mistune.py 2017-10-26 19:02:20.000000000 +0200 +++ new/mistune-0.8.3/mistune.py 2017-12-04 06:00:00.000000000 +0100 @@ -11,7 +11,7 @@ import re import inspect -__version__ = '0.8' +__version__ = '0.8.3' __author__ = 'Hsiaoming Yang <m...@lepture.com>' __all__ = [ 'BlockGrammar', 'BlockLexer', @@ -48,7 +48,8 @@ def _keyify(key): - return _key_pattern.sub(' ', key.lower()) + key = escape(key.lower(), quote=True) + return _key_pattern.sub(' ', key) def escape(text, quote=False, smart_amp=True): @@ -445,7 +446,8 @@ inline_html = re.compile( r'^(?:%s|%s|%s)' % ( r'<!--[\s\S]*?-->', - r'<(\w+%s)((?:%s)*?)\s*>([\s\S]*?)<\/\1>' % (_valid_end, _valid_attr), + r'<(\w+%s)((?:%s)*?)\s*>([\s\S]*?)<\/\1>' % ( + _valid_end, _valid_attr), r'<\w+%s(?:%s)*?\s*\/?>' % (_valid_end, _valid_attr), ) ) @@ -501,7 +503,7 @@ 'linebreak', 'strikethrough', 'text', ] inline_html_rules = [ - 'escape', 'autolink', 'url', 'link', 'reflink', + 'escape', 'inline_html', 'autolink', 'url', 'link', 'reflink', 'nolink', 'double_emphasis', 'emphasis', 'code', 'linebreak', 'strikethrough', 'text', ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-0.8/setup.cfg new/mistune-0.8.3/setup.cfg --- old/mistune-0.8/setup.cfg 2017-10-26 19:06:08.000000000 +0200 +++ new/mistune-0.8.3/setup.cfg 2017-12-04 06:02:33.000000000 +0100 @@ -9,5 +9,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mistune-0.8/tests/test_extra.py new/mistune-0.8.3/tests/test_extra.py --- old/mistune-0.8/tests/test_extra.py 2017-10-26 18:50:16.000000000 +0200 +++ new/mistune-0.8.3/tests/test_extra.py 2017-12-04 05:59:07.000000000 +0100 @@ -116,6 +116,21 @@ assert '<strong>' not in ret +def test_parse_nested_html(): + ret = mistune.markdown( + '<div><a href="http://example.org">**foo**</a></div>', + parse_block_html=True, escape=False + ) + assert '<div><a href="http://example.org">' in ret + assert '<strong>' not in ret + + ret = mistune.markdown( + '<div><a href="http://example.org">**foo**</a></div>', + parse_block_html=True, parse_inline_html=True, escape=False + ) + assert '<div><a href="http://example.org"><strong>' in ret + + def test_trigger_more_cases(): markdown = mistune.Markdown( inline=mistune.InlineLexer,