Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-markdown2 for 
openSUSE:Factory checked in at 2022-03-26 22:32:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-markdown2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-markdown2.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-markdown2"

Sat Mar 26 22:32:05 2022 rev:9 rq:965066 version:2.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-markdown2/python-markdown2.changes        
2021-03-10 08:49:42.794421893 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-markdown2.new.1900/python-markdown2.changes  
    2022-03-26 22:32:29.666070984 +0100
@@ -1,0 +2,10 @@
+Sat Mar 26 18:36:07 UTC 2022 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 2.4.2:
+  - [pull #408] Fix for fenced code blocks issue #396
+  - [pull #410] Be more strict on auto linking urls, RE DOS fix
+  - [pull #389] Tables extra: allow whitespace at the end of the underline row
+  - [pull #392] Pyshell extra: enable syntax highlighting if 
`fenced-code-blocks` is loaded.
+  - [pull #402] Regex DOS bandaid fix
+
+-------------------------------------------------------------------

Old:
----
  markdown2-2.4.0.tar.gz

New:
----
  markdown2-2.4.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-markdown2.spec ++++++
--- /var/tmp/diff_new_pack.CFYd8e/_old  2022-03-26 22:32:30.214071735 +0100
+++ /var/tmp/diff_new_pack.CFYd8e/_new  2022-03-26 22:32:30.218071740 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-markdown2
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-markdown2
-Version:        2.4.0
+Version:        2.4.2
 Release:        0
 Summary:        A Python implementation of Markdown
 License:        MIT
@@ -31,7 +31,7 @@
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
 BuildArch:      noarch
 %python_subpackages
 

++++++ markdown2-2.4.0.tar.gz -> markdown2-2.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/markdown2-2.4.0/CHANGES.md 
new/markdown2-2.4.2/CHANGES.md
--- old/markdown2-2.4.0/CHANGES.md      2021-01-22 21:48:03.000000000 +0100
+++ new/markdown2-2.4.2/CHANGES.md      2021-12-02 04:50:38.000000000 +0100
@@ -1,5 +1,18 @@
 # python-markdown2 Changelog
 
+## python-markdown2 2.4.2
+
+- [pull #408] Fix for fenced code blocks issue #396
+- [pull #410] Be more strict on auto linking urls, RE DOS fix
+
+
+## python-markdown2 2.4.1
+
+- [pull #389] Tables extra: allow whitespace at the end of the underline row
+- [pull #392] Pyshell extra: enable syntax highlighting if 
`fenced-code-blocks` is loaded.
+- [pull #402] Regex DOS bandaid fix
+
+
 ## python-markdown2 2.4.0
 
 - [pull #377] Fixed bug breaking strings elements in metadata lists
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/markdown2-2.4.0/CONTRIBUTORS.txt 
new/markdown2-2.4.2/CONTRIBUTORS.txt
--- old/markdown2-2.4.0/CONTRIBUTORS.txt        2021-01-15 03:28:44.000000000 
+0100
+++ new/markdown2-2.4.2/CONTRIBUTORS.txt        2021-12-02 04:45:53.000000000 
+0100
@@ -48,3 +48,5 @@
 St??rry Shiv??m (github.com/starry69)
 Andr?? Nasturas (github.com/andrenasturas)
 Denis Kasak (github.com/dkasak)
+Maximilian Hils (github.com/mhils)
+BarkeH (github.com/BarkeH)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/markdown2-2.4.0/PKG-INFO new/markdown2-2.4.2/PKG-INFO
--- old/markdown2-2.4.0/PKG-INFO        2021-01-22 21:49:43.284105500 +0100
+++ new/markdown2-2.4.2/PKG-INFO        2021-12-02 04:50:50.984773400 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: markdown2
-Version: 2.4.0
+Version: 2.4.2
 Summary: A fast and complete Python implementation of Markdown
 Home-page: https://github.com/trentm/python-markdown2
 Author: Trent Mick
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/markdown2-2.4.0/README.md 
new/markdown2-2.4.2/README.md
--- old/markdown2-2.4.0/README.md       2019-11-24 03:42:17.000000000 +0100
+++ new/markdown2-2.4.2/README.md       2021-12-02 04:45:53.000000000 +0100
@@ -28,9 +28,6 @@
 Follow <a href="https://twitter.com/intent/user?screen_name=trentmick"; 
target="_blank">@trentmick</a>
 for updates to python-markdown2.
 
-Travis-ci.org test status: [![Build 
Status](https://secure.travis-ci.org/trentm/python-markdown2.png)](http://travis-ci.org/trentm/python-markdown2)
-
-
 # Install
 
 To install it in your Python installation run *one* of the following:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/markdown2-2.4.0/lib/markdown2.egg-info/PKG-INFO 
new/markdown2-2.4.2/lib/markdown2.egg-info/PKG-INFO
--- old/markdown2-2.4.0/lib/markdown2.egg-info/PKG-INFO 2021-01-22 
21:49:42.000000000 +0100
+++ new/markdown2-2.4.2/lib/markdown2.egg-info/PKG-INFO 2021-12-02 
04:50:50.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: markdown2
-Version: 2.4.0
+Version: 2.4.2
 Summary: A fast and complete Python implementation of Markdown
 Home-page: https://github.com/trentm/python-markdown2
 Author: Trent Mick
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/markdown2-2.4.0/lib/markdown2.egg-info/SOURCES.txt 
new/markdown2-2.4.2/lib/markdown2.egg-info/SOURCES.txt
--- old/markdown2-2.4.0/lib/markdown2.egg-info/SOURCES.txt      2021-01-22 
21:49:42.000000000 +0100
+++ new/markdown2-2.4.2/lib/markdown2.egg-info/SOURCES.txt      2021-12-02 
04:50:50.000000000 +0100
@@ -111,6 +111,9 @@
 test/tm-cases/fenced_code_blocks_issue161.opts
 test/tm-cases/fenced_code_blocks_issue161.tags
 test/tm-cases/fenced_code_blocks_issue161.text
+test/tm-cases/fenced_code_blocks_issue396.html
+test/tm-cases/fenced_code_blocks_issue396.opts
+test/tm-cases/fenced_code_blocks_issue396.text
 test/tm-cases/fenced_code_blocks_issue86.html
 test/tm-cases/fenced_code_blocks_issue86.opts
 test/tm-cases/fenced_code_blocks_issue86.tags
@@ -328,6 +331,10 @@
 test/tm-cases/pyshell.html
 test/tm-cases/pyshell.opts
 test/tm-cases/pyshell.text
+test/tm-cases/pyshell_and_fenced_code_blocks.html
+test/tm-cases/pyshell_and_fenced_code_blocks.opts
+test/tm-cases/pyshell_and_fenced_code_blocks.tags
+test/tm-cases/pyshell_and_fenced_code_blocks.text
 test/tm-cases/raw_html.html
 test/tm-cases/raw_html.text
 test/tm-cases/ref_links.html
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/markdown2-2.4.0/lib/markdown2.py 
new/markdown2-2.4.2/lib/markdown2.py
--- old/markdown2-2.4.0/lib/markdown2.py        2021-01-21 05:48:22.000000000 
+0100
+++ new/markdown2-2.4.2/lib/markdown2.py        2021-12-02 04:45:53.000000000 
+0100
@@ -97,7 +97,7 @@
 #   not yet sure if there implications with this. Compare 'pydoc sre'
 #   and 'perldoc perlre'.
 
-__version_info__ = (2, 4, 0)
+__version_info__ = (2, 4, 2)
 __version__ = '.'.join(map(str, __version_info__))
 __author__ = "Trent Mick"
 
@@ -1029,6 +1029,9 @@
         return text
 
     def _pyshell_block_sub(self, match):
+        if "fenced-code-blocks" in self.extras:
+            dedented = _dedent(match.group(0))
+            return self._do_fenced_code_blocks("```pycon\n" + dedented + 
"```\n")
         lines = match.group(0).splitlines(0)
         _dedentlines(lines)
         indent = ' ' * self.tab_width
@@ -1113,10 +1116,10 @@
                 ^[ ]{0,%d}                      # allowed whitespace
                 (                               # $2: underline row
                     # underline row with leading bar
-                    (?:  \|\ *:?-+:?\ *  )+  \|?  \n
+                    (?:  \|\ *:?-+:?\ *  )+  \|? \s? \n
                     |
                     # or, underline row without leading bar
-                    (?:  \ *:?-+:?\ *\|  )+  (?:  \ *:?-+:?\ *  )?  \n
+                    (?:  \ *:?-+:?\ *\|  )+  (?:  \ *:?-+:?\ *  )? \s? \n
                 )
 
                 (                               # $3: data rows
@@ -1232,7 +1235,7 @@
             \s*/?>
             |
             # auto-link (e.g., <http://www.activestate.com/>)
-            <\w+[^>]*>
+            <[\w~:/?#\[\]@!$&'\(\)*+,;%=\.\\-]+>
             |
             <!--.*?-->      # comment
             |
@@ -1605,12 +1608,12 @@
         self._toc.append((level, id, self._unescape_special_chars(name)))
 
     _h_re_base = r'''
-        (^(.+)[ \t]*\n(=+|-+)[ \t]*\n+)
+        (^(.+)[ \t]{0,99}\n(=+|-+)[ \t]*\n+)
         |
         (^(\#{1,6})  # \1 = string of #'s
         [ \t]%s
         (.+?)       # \2 = Header text
-        [ \t]*
+        [ \t]{0,99}
         (?<!\\)     # ensure not an escaped trailing '#'
         \#*         # optional closing #'s (not counted)
         \n+
@@ -1926,7 +1929,7 @@
 
     _fenced_code_block_re = re.compile(r'''
         (?:\n+|\A\n?)
-        ^```\s{0,99}([\w+-]+)?\s{0,99}\n  # opening fence, $1 = optional lang
+        ^```\s{0,99}?([\w+-]+)?\s{0,99}?\n  # opening fence, $1 = optional lang
         (.*?)                             # $2 = code block content
         ^```[ \t]*\n                      # closing fence
         ''', re.M | re.X | re.S)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/markdown2-2.4.0/test/tm-cases/fenced_code_blocks_issue396.html 
new/markdown2-2.4.2/test/tm-cases/fenced_code_blocks_issue396.html
--- old/markdown2-2.4.0/test/tm-cases/fenced_code_blocks_issue396.html  
1970-01-01 01:00:00.000000000 +0100
+++ new/markdown2-2.4.2/test/tm-cases/fenced_code_blocks_issue396.html  
2021-12-02 04:45:53.000000000 +0100
@@ -0,0 +1,4 @@
+<pre><code>a
+b
+c
+</code></pre>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/markdown2-2.4.0/test/tm-cases/fenced_code_blocks_issue396.opts 
new/markdown2-2.4.2/test/tm-cases/fenced_code_blocks_issue396.opts
--- old/markdown2-2.4.0/test/tm-cases/fenced_code_blocks_issue396.opts  
1970-01-01 01:00:00.000000000 +0100
+++ new/markdown2-2.4.2/test/tm-cases/fenced_code_blocks_issue396.opts  
2021-12-02 04:45:53.000000000 +0100
@@ -0,0 +1 @@
+{"extras": ["fenced-code-blocks"]}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/markdown2-2.4.0/test/tm-cases/fenced_code_blocks_issue396.text 
new/markdown2-2.4.2/test/tm-cases/fenced_code_blocks_issue396.text
--- old/markdown2-2.4.0/test/tm-cases/fenced_code_blocks_issue396.text  
1970-01-01 01:00:00.000000000 +0100
+++ new/markdown2-2.4.2/test/tm-cases/fenced_code_blocks_issue396.text  
2021-12-02 04:45:53.000000000 +0100
@@ -0,0 +1,5 @@
+```
+a
+b
+c
+```
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/markdown2-2.4.0/test/tm-cases/issue341_xss.html 
new/markdown2-2.4.2/test/tm-cases/issue341_xss.html
--- old/markdown2-2.4.0/test/tm-cases/issue341_xss.html 2020-05-11 
23:24:03.000000000 +0200
+++ new/markdown2-2.4.2/test/tm-cases/issue341_xss.html 2021-12-02 
04:45:53.000000000 +0100
@@ -2,4 +2,4 @@
 <ftp:<a href="#">[HTML_REMOVED]alert(1);//</a>&gt;<ftp:<a 
href="#">[HTML_REMOVED]</a>&gt;</p>
 
 <p>Example 2:
-<http://g<!s://q?<!-&lt;<a 
href="http://g";>[HTML_REMOVED]alert(1);/*</a>->a><http://g<!s://g.c?<!-&lt;<a 
href="http://g";>a\\*/[HTML_REMOVED]alert(1);/*</a>->a></p>
+&lt;http://g<!s://q?<!-&lt;<a 
href="http://g";>[HTML_REMOVED]alert(1);/\*</a>->a>&lt;http://g<!s://g.c?<!-&lt;<a
 href="http://g";>a\\*/[HTML_REMOVED]alert(1);/*</a>->a></p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/markdown2-2.4.0/test/tm-cases/pyshell_and_fenced_code_blocks.html 
new/markdown2-2.4.2/test/tm-cases/pyshell_and_fenced_code_blocks.html
--- old/markdown2-2.4.0/test/tm-cases/pyshell_and_fenced_code_blocks.html       
1970-01-01 01:00:00.000000000 +0100
+++ new/markdown2-2.4.2/test/tm-cases/pyshell_and_fenced_code_blocks.html       
2021-12-02 04:45:53.000000000 +0100
@@ -0,0 +1,21 @@
+<h1>From Recipe 302035</h1>
+
+<p>Some examples:</p>
+
+<div class="codehilite"><pre><span></span><code><span class="gp">&gt;&gt;&gt; 
</span><span class="n">nprint</span><span class="p">(</span><span 
class="mi">9876543210</span><span class="p">)</span>
+<span class="go">&#39;9 876 543 210&#39;</span>
+<span class="gp">&gt;&gt;&gt; </span><span class="n">nprint</span><span 
class="p">(</span><span class="mi">987654321</span><span class="p">,</span> 
<span class="n">period</span><span class="o">=</span><span 
class="mi">1</span><span class="p">,</span> <span 
class="n">delimiter</span><span class="o">=</span><span 
class="s2">&quot;,&quot;</span><span class="p">)</span>
+<span class="go">&#39;9,8,7,6,5,4,3,2,1,0&#39;</span>
+</code></pre></div>
+
+<p>Indented a bit:</p>
+
+<div class="codehilite"><pre><span></span><code><span class="gp">&gt;&gt;&gt; 
</span><span class="mi">1</span> <span class="o">+</span> <span 
class="mi">1</span>
+<span class="go">2</span>
+</code></pre></div>
+
+<p>Cuddled to previous para (and at end of document):</p>
+
+<div class="codehilite"><pre><span></span><code><span class="gp">&gt;&gt;&gt; 
</span><span class="mi">2</span> <span class="o">+</span> <span 
class="mi">2</span>
+<span class="go">4</span>
+</code></pre></div>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/markdown2-2.4.0/test/tm-cases/pyshell_and_fenced_code_blocks.opts 
new/markdown2-2.4.2/test/tm-cases/pyshell_and_fenced_code_blocks.opts
--- old/markdown2-2.4.0/test/tm-cases/pyshell_and_fenced_code_blocks.opts       
1970-01-01 01:00:00.000000000 +0100
+++ new/markdown2-2.4.2/test/tm-cases/pyshell_and_fenced_code_blocks.opts       
2021-12-02 04:45:53.000000000 +0100
@@ -0,0 +1 @@
+{"extras": ["pyshell", "fenced-code-blocks"]}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/markdown2-2.4.0/test/tm-cases/pyshell_and_fenced_code_blocks.tags 
new/markdown2-2.4.2/test/tm-cases/pyshell_and_fenced_code_blocks.tags
--- old/markdown2-2.4.0/test/tm-cases/pyshell_and_fenced_code_blocks.tags       
1970-01-01 01:00:00.000000000 +0100
+++ new/markdown2-2.4.2/test/tm-cases/pyshell_and_fenced_code_blocks.tags       
2021-12-02 04:45:53.000000000 +0100
@@ -0,0 +1 @@
+extra fenced-code-blocks pygments pyshell
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/markdown2-2.4.0/test/tm-cases/pyshell_and_fenced_code_blocks.text 
new/markdown2-2.4.2/test/tm-cases/pyshell_and_fenced_code_blocks.text
--- old/markdown2-2.4.0/test/tm-cases/pyshell_and_fenced_code_blocks.text       
1970-01-01 01:00:00.000000000 +0100
+++ new/markdown2-2.4.2/test/tm-cases/pyshell_and_fenced_code_blocks.text       
2021-12-02 04:45:53.000000000 +0100
@@ -0,0 +1,17 @@
+# From Recipe 302035
+
+Some examples:
+
+>>> nprint(9876543210)
+'9 876 543 210'
+>>> nprint(987654321, period=1, delimiter=",")
+'9,8,7,6,5,4,3,2,1,0'
+
+Indented a bit:
+
+ >>> 1 + 1
+ 2
+
+Cuddled to previous para (and at end of document):
+>>> 2 + 2
+4

Reply via email to