Hello community, here is the log from the commit of package python3-Markdown for openSUSE:Factory checked in at 2016-09-26 12:36:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-Markdown (Old) and /work/SRC/openSUSE:Factory/.python3-Markdown.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-Markdown" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-Markdown/python3-Markdown.changes 2016-05-25 21:23:07.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-Markdown.new/python3-Markdown.changes 2016-09-26 12:36:41.000000000 +0200 @@ -1,0 +2,5 @@ +Sat Sep 24 18:19:54 UTC 2016 - benoit.mo...@gmx.fr + +- update to version 2.6.7: bugfix release + +------------------------------------------------------------------- Old: ---- Markdown-2.6.6.tar.gz New: ---- Markdown-2.6.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-Markdown.spec ++++++ --- /var/tmp/diff_new_pack.G5H5zl/_old 2016-09-26 12:36:42.000000000 +0200 +++ /var/tmp/diff_new_pack.G5H5zl/_new 2016-09-26 12:36:42.000000000 +0200 @@ -17,7 +17,7 @@ Name: python3-Markdown -Version: 2.6.6 +Version: 2.6.7 Release: 0 Summary: Python implementation of Markdown License: BSD-3-Clause ++++++ Markdown-2.6.6.tar.gz -> Markdown-2.6.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/PKG-INFO new/Markdown-2.6.7/PKG-INFO --- old/Markdown-2.6.6/PKG-INFO 2016-03-21 02:01:39.000000000 +0100 +++ new/Markdown-2.6.7/PKG-INFO 2016-09-24 02:08:27.000000000 +0200 @@ -1,12 +1,12 @@ Metadata-Version: 1.1 Name: Markdown -Version: 2.6.6 +Version: 2.6.7 Summary: Python implementation of Markdown. Home-page: https://pythonhosted.org/Markdown/ Author: Waylan Limberg Author-email: waylan.limberg [at] icloud.com License: BSD License -Download-URL: http://pypi.python.org/packages/source/M/Markdown/Markdown-2.6.6.tar.gz +Download-URL: http://pypi.python.org/packages/source/M/Markdown/Markdown-2.6.7.tar.gz Description: This is a Python implementation of John Gruber's Markdown_. It is almost completely compliant with the reference implementation, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/README.md new/Markdown-2.6.7/README.md --- old/Markdown-2.6.6/README.md 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/README.md 2016-06-13 03:12:58.000000000 +0200 @@ -27,6 +27,8 @@ of the distribution and on the project website at <https://pythonhosted.org/Markdown/>. +See the change log at <https://pythonhosted.org/Markdown/change_log.html>. + Support ------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/docs/change_log.txt new/Markdown-2.6.7/docs/change_log.txt --- old/Markdown-2.6.6/docs/change_log.txt 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/docs/change_log.txt 2016-09-24 02:05:38.000000000 +0200 @@ -7,6 +7,10 @@ Python-Markdown Change Log ========================= +Sept 23, 2016: Released version 2.6.7 (a bug-fix release). + +Mar 20, 2016: Released version 2.6.6 (a bug-fix release). + Nov 24, 2015: Released version 2.6.5 (a bug-fix release). Nov 6, 2015: Released version 2.6.4 (a bug-fix release). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/docs/extensions/code_hilite.txt new/Markdown-2.6.7/docs/extensions/code_hilite.txt --- old/Markdown-2.6.6/docs/extensions/code_hilite.txt 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/docs/extensions/code_hilite.txt 2016-09-24 01:31:43.000000000 +0200 @@ -20,20 +20,54 @@ Setup ----- +### Step 1: Download and Install Pygments ### + You will also need to [download][dl] and install the Pygments package on your -`PYTHONPATH`. You will need to determine the appropriate CSS classes and create -appropriate rules for them, which are either defined in or linked from the -header of your HTML templates. See the excellent [documentation][] for more -details. If no language is defined, Pygments will attempt to guess the -language. When that fails, the code block will not be highlighted. +`PYTHONPATH`. The CodeHilite extension will produce HTML output without +Pygments, but it won't highlight anything (same behavior as setting +`use_pygments` to `False`). [dl]: http://pygments.org/download/ -[documentation]: http://pygments.org/docs -!!! Note - The CSS and/or JavaScript is not included as part of this extension - but must be provided by the end user. The Pygments project provides - default CSS styles which you may find to be a useful starting point. +### Step 2: Add CSS Classes ### + +You will need to define the appropriate CSS classes with appropriate rules. +The CSS rules either need to be defined in or linked from the header of your +HTML templates. Pygments can generate CSS rules for you. Just run the following +command from the command line: + + pygmentize -S default -f html -a codehilite > styles.css + +If you are using a different `css_class` (default: `codehilite`), then +set the value of the `-a` option to that class name. The CSS rules will be +written to the `styles.css` file which you can copy to your site and link from +your HTML templates. + +If you would like to use a different theme, swap out `default` for the desired +theme. For a list of themes installed on your system (additional themes can be +installed via Pygments plugins), run the following command: + + pygmetize -L style + +!!! see also + + GitHub user [richeland] has provided a number of different [CSS style + sheets][rich] which work with Pygments along with a [preview] of each theme. + The `css_class` used is the same as the default value for that option + (`codehilite`). However, the Python-Markdown project makes no guarantee that + richeland's CSS styles will work with the version of Pygments you are using. + To ensure complete compatibility, you should generate the CSS rules from + your own installation of Pygments. + +See Pygments' excellent [documentation] for more details. If no language is +defined, Pygments will attempt to guess the language. When that fails, the code +block will not be highlighted. + +[richeland]: https://github.com/richleland +[rich]: https://github.com/richleland/pygments-css +[previews]: http://richleland.github.io/pygments-css/ +[documentation]: http://pygments.org/docs/ + Syntax ------ @@ -91,8 +125,8 @@ # Code goes here ... -Certain lines can be selected for emphasis with the colon syntax. When -using Pygments' default CSS styles, emphasized lines have a yellow background. +Certain lines can be selected for emphasis with the colon syntax. When +using Pygments' default CSS styles, emphasized lines have a yellow background. This is useful to direct the reader's attention to specific lines. :::python hl_lines="1 3" @@ -107,7 +141,7 @@ CodeHilite is completely backwards compatible so that if a code block is encountered that does not define a language, the block is simply wrapped in -`<pre>` tags and output. +`<pre>` tags and output. # Code goes here ... @@ -121,15 +155,15 @@ </code></pre></div> !!! Note - When no language is defined, the Pygments highlighting engine will try to guess - the language (unless `guess_lang` is set to `False`). Upon failure, the same + When no language is defined, the Pygments highlighting engine will try to guess + the language (unless `guess_lang` is set to `False`). Upon failure, the same behavior will happen as described above. Usage ----- -See [Extensions](index.html) for general extension usage, specify `markdown.extensions.codehilite` -as the name of the extension. +See [Extensions](index.html) for general extension usage, specify +`markdown.extensions.codehilite` as the name of the extension. See the [Library Reference](../reference.html#extensions) for information about configuring extensions. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/docs/reference.txt new/Markdown-2.6.7/docs/reference.txt --- old/Markdown-2.6.6/docs/reference.txt 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/docs/reference.txt 2016-04-12 01:37:21.000000000 +0200 @@ -247,8 +247,8 @@ If `lazy_ol` is set to `False`, then markdown will output the following HTML: - <ol> - <li start="4">Apples</li> + <ol start="4"> + <li>Apples</li> <li>Oranges</li> <li>Pears</li> </ol> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/docs/release-2.5.txt new/Markdown-2.6.7/docs/release-2.5.txt --- old/Markdown-2.6.6/docs/release-2.5.txt 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/docs/release-2.5.txt 2016-06-13 03:12:58.000000000 +0200 @@ -59,7 +59,7 @@ As the HTML would not be parsed with the above Extension, then the serializer will escape the raw HTML, which is exactly what happens now when `safe_mode="escape"`. -[Bleach]: http://bleach.readthedocs.org/ +[Bleach]: https://bleach.readthedocs.io/ * Positional arguments on the `markdown.Markdown()` are pending deprecation as are all except the `text` argument on the `markdown.markdown()` wrapper function. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/docs/release-2.6.txt new/Markdown-2.6.7/docs/release-2.6.txt --- old/Markdown-2.6.6/docs/release-2.6.txt 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/docs/release-2.6.txt 2016-06-13 03:12:58.000000000 +0200 @@ -49,7 +49,7 @@ As the HTML would not be parsed with the above Extension, then the serializer will escape the raw HTML, which is exactly what happens now when `safe_mode="escape"`. -[Bleach]: http://bleach.readthedocs.org/ +[Bleach]: https://bleach.readthedocs.io/ ### Positional Arguments Deprecated @@ -256,7 +256,7 @@ will not directly effect end users, the code is being better tested which will benefit everyone. -[flake8]: http://flake8.readthedocs.org/en/latest/ +[flake8]: https://flake8.readthedocs.io/en/latest/ Various bug fixes have been made. See the [commit log](https://github.com/waylan/Python-Markdown/commits/master) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/markdown/__init__.py new/Markdown-2.6.7/markdown/__init__.py --- old/Markdown-2.6.6/markdown/__init__.py 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/markdown/__init__.py 2016-06-13 03:12:58.000000000 +0200 @@ -137,7 +137,7 @@ if 'safe_mode' in kwargs: warnings.warn('"safe_mode" is deprecated in Python-Markdown. ' 'Use an HTML sanitizer (like ' - 'Bleach http://bleach.readthedocs.org/) ' + 'Bleach https://bleach.readthedocs.io/) ' 'if you are parsing untrusted markdown text. ' 'See the 2.6 release notes for more info', DeprecationWarning) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/markdown/__version__.py new/Markdown-2.6.7/markdown/__version__.py --- old/Markdown-2.6.6/markdown/__version__.py 2016-03-21 01:59:12.000000000 +0100 +++ new/Markdown-2.6.7/markdown/__version__.py 2016-09-24 02:04:03.000000000 +0200 @@ -5,7 +5,7 @@ # (major, minor, micro, alpha/beta/rc/final, #) # (1, 1, 2, 'alpha', 0) => "1.1.2.dev" # (1, 2, 0, 'beta', 2) => "1.2b2" -version_info = (2, 6, 6, 'final', 0) +version_info = (2, 6, 7, 'final', 0) def _get_version(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/markdown/extensions/attr_list.py new/Markdown-2.6.7/markdown/extensions/attr_list.py --- old/Markdown-2.6.6/markdown/extensions/attr_list.py 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/markdown/extensions/attr_list.py 2016-09-24 01:56:41.000000000 +0200 @@ -32,17 +32,17 @@ def _handle_double_quote(s, t): - k, v = t.split('=') + k, v = t.split('=', 1) return k, v.strip('"') def _handle_single_quote(s, t): - k, v = t.split('=') + k, v = t.split('=', 1) return k, v.strip("'") def _handle_key_value(s, t): - return t.split('=') + return t.split('=', 1) def _handle_word(s, t): @@ -53,9 +53,9 @@ return t, t _scanner = Scanner([ - (r'[^ ]+=".*?"', _handle_double_quote), - (r"[^ ]+='.*?'", _handle_single_quote), - (r'[^ ]+=[^ =]+', _handle_key_value), + (r'[^ =]+=".*?"', _handle_double_quote), + (r"[^ =]+='.*?'", _handle_single_quote), + (r'[^ =]+=[^ =]+', _handle_key_value), (r'[^ =]+', _handle_word), (r' ', None) ]) @@ -72,7 +72,7 @@ class AttrListTreeprocessor(Treeprocessor): - BASE_RE = r'\{\:?([^\}]*)\}' + BASE_RE = r'\{\:?([^\}\n]*)\}' HEADER_RE = re.compile(r'[ ]+%s[ ]*$' % BASE_RE) BLOCK_RE = re.compile(r'\n[ ]*%s[ ]*$' % BASE_RE) INLINE_RE = re.compile(r'^%s' % BASE_RE) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/markdown/extensions/fenced_code.py new/Markdown-2.6.7/markdown/extensions/fenced_code.py --- old/Markdown-2.6.6/markdown/extensions/fenced_code.py 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/markdown/extensions/fenced_code.py 2016-04-12 01:37:21.000000000 +0200 @@ -81,6 +81,7 @@ guess_lang=self.codehilite_conf['guess_lang'][0], css_class=self.codehilite_conf['css_class'][0], style=self.codehilite_conf['pygments_style'][0], + use_pygments=self.codehilite_conf['use_pygments'][0], lang=(m.group('lang') or None), noclasses=self.codehilite_conf['noclasses'][0], hl_lines=parse_hl_lines(m.group('hl_lines')) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/markdown/extensions/tables.py new/Markdown-2.6.7/markdown/extensions/tables.py --- old/Markdown-2.6.6/markdown/extensions/tables.py 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/markdown/extensions/tables.py 2016-09-24 01:36:40.000000000 +0200 @@ -45,6 +45,7 @@ # Get alignment of columns align = [] for c in self._split_row(seperator, border): + c = c.strip() if c.startswith(':') and c.endswith(':'): align.append('center') elif c.startswith(':'): @@ -73,11 +74,7 @@ for i, a in enumerate(align): c = etree.SubElement(tr, tag) try: - if isinstance(cells[i], str) or isinstance(cells[i], unicode): - c.text = cells[i].strip() - else: - # we've already inserted a code element - c.append(cells[i]) + c.text = cells[i].strip() except IndexError: # pragma: no cover c.text = "" if a: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/markdown/inlinepatterns.py new/Markdown-2.6.7/markdown/inlinepatterns.py --- old/Markdown-2.6.6/markdown/inlinepatterns.py 2016-03-11 23:52:18.000000000 +0100 +++ new/Markdown-2.6.7/markdown/inlinepatterns.py 2016-09-24 01:36:40.000000000 +0200 @@ -130,7 +130,7 @@ r'''\(\s*(<.*?>|((?:(?:\(.*?\))|[^\(\)]))*?)\s*((['"])(.*?)\12\s*)?\)''' # ![alttxt](http://x.com/) or ![alttxt](<http://x.com/>) -IMAGE_LINK_RE = r'\!' + BRK + r'\s*\((<.*?>|([^")]+"[^"]*"|[^\)]*))\)' +IMAGE_LINK_RE = r'\!' + BRK + r'\s*\(\s*(<.*?>|([^"\)\s]+\s*"[^"]*"|[^\)\s]*))\s*\)' # [Google][3] REFERENCE_RE = NOIMG + BRK + r'\s?\[([^\]]*)\]' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/tests/extensions/attr_list.html new/Markdown-2.6.7/tests/extensions/attr_list.html --- old/Markdown-2.6.6/tests/extensions/attr_list.html 2015-08-28 05:42:04.000000000 +0200 +++ new/Markdown-2.6.7/tests/extensions/attr_list.html 2016-09-24 01:59:42.000000000 +0200 @@ -63,4 +63,7 @@ <p>Value without <em>key</em></p> <p>No <em>key or value</em></p> <p><em>Weirdness</em></p> -<p><em>More weirdness</em></p> \ No newline at end of file +<p><em>More weirdness</em></p> +<p>This should not cause a <em foo="a">crash</em></p> +<p>Attr_lists do not contain <em>newlines</em>{ foo=bar +key=value }</p> \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/tests/extensions/attr_list.txt new/Markdown-2.6.7/tests/extensions/attr_list.txt --- old/Markdown-2.6.6/tests/extensions/attr_list.txt 2015-08-28 05:42:04.000000000 +0200 +++ new/Markdown-2.6.7/tests/extensions/attr_list.txt 2016-09-24 01:59:31.000000000 +0200 @@ -88,3 +88,7 @@ *More weirdness*{ === } +This should not cause a *crash*{ foo=a=b } + +Attr_lists do not contain *newlines*{ foo=bar +key=value } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/tests/extensions/extra/tables.html new/Markdown-2.6.7/tests/extensions/extra/tables.html --- old/Markdown-2.6.6/tests/extensions/extra/tables.html 2015-12-30 00:31:55.000000000 +0100 +++ new/Markdown-2.6.7/tests/extensions/extra/tables.html 2016-09-24 01:36:40.000000000 +0200 @@ -38,21 +38,21 @@ <table> <thead> <tr> -<th>Item</th> +<th align="left">Item</th> <th align="right">Value</th> </tr> </thead> <tbody> <tr> -<td>Computer</td> +<td align="left">Computer</td> <td align="right">$1600</td> </tr> <tr> -<td>Phone</td> +<td align="left">Phone</td> <td align="right">$12</td> </tr> <tr> -<td>Pipe</td> +<td align="left">Pipe</td> <td align="right">$1</td> </tr> </tbody> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/tests/misc/image.html new/Markdown-2.6.7/tests/misc/image.html --- old/Markdown-2.6.6/tests/misc/image.html 2015-08-28 05:42:04.000000000 +0200 +++ new/Markdown-2.6.7/tests/misc/image.html 2016-09-24 01:36:40.000000000 +0200 @@ -1,3 +1,5 @@ <p><img alt="Poster" src="http://humane_man.jpg" title="The most humane man." /></p> <p><img alt="Poster" src="http://humane_man.jpg" title="The most humane man." /></p> -<p><img alt="Blank" src="" /></p> \ No newline at end of file +<p><img alt="Blank" src="" /></p> +<p>![Fail](http://humane man.jpg "The most humane man.")</p> +<p>![Fail](http://humane man.jpg)</p> \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/tests/misc/image.txt new/Markdown-2.6.7/tests/misc/image.txt --- old/Markdown-2.6.6/tests/misc/image.txt 2015-08-28 05:42:04.000000000 +0200 +++ new/Markdown-2.6.7/tests/misc/image.txt 2016-09-24 01:36:40.000000000 +0200 @@ -5,4 +5,8 @@ [Poster]:http://humane_man.jpg "The most humane man." -![Blank]() \ No newline at end of file +![Blank]() + +![Fail](http://humane man.jpg "The most humane man.") + +![Fail](http://humane man.jpg) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Markdown-2.6.6/tests/test_extensions.py new/Markdown-2.6.7/tests/test_extensions.py --- old/Markdown-2.6.6/tests/test_extensions.py 2016-03-21 01:58:20.000000000 +0100 +++ new/Markdown-2.6.7/tests/test_extensions.py 2016-04-12 01:37:21.000000000 +0200 @@ -375,6 +375,18 @@ '#line 3</code></pre>' ) + def testFencedLanguageAndPygmentsDisabled(self): + """ Test if fenced_code honors CodeHilite option use_pygments=False. """ + + text = '```python\nfrom __future__ import braces\n```' + md = markdown.Markdown( + extensions=[ + markdown.extensions.codehilite.CodeHiliteExtension(use_pygments=False), + 'markdown.extensions.fenced_code' + ] + ) + self.assertTrue('<code class="language-python">' in md.convert(text)) + class TestHeaderId(unittest.TestCase): """ Test HeaderId Extension. """