Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pymdown-extensions for 
openSUSE:Factory checked in at 2025-12-09 12:53:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pymdown-extensions (Old)
 and      /work/SRC/openSUSE:Factory/.python-pymdown-extensions.new.1939 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pymdown-extensions"

Tue Dec  9 12:53:41 2025 rev:18 rq:1321688 version:10.18

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pymdown-extensions/python-pymdown-extensions.changes
      2025-12-01 11:14:29.357472835 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pymdown-extensions.new.1939/python-pymdown-extensions.changes
    2025-12-09 13:00:11.508787857 +0100
@@ -1,0 +2,10 @@
+Mon Dec  8 20:58:20 UTC 2025 - BenoĆ®t Monin <[email protected]>
+
+- update to version 10.18:
+  * NEW: Critic: view mode has been deprecated. To avoid warnings
+    or future issues, explicitly set mode to either accept or
+    reject.
+  * FIX: Block Admonition: important should have always been
+    available as a default.
+
+-------------------------------------------------------------------

Old:
----
  pymdown-extensions-10.17.2.tar.gz

New:
----
  pymdown-extensions-10.18.tar.gz

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

Other differences:
------------------
++++++ python-pymdown-extensions.spec ++++++
--- /var/tmp/diff_new_pack.VLl5Ux/_old  2025-12-09 13:00:12.740839790 +0100
+++ /var/tmp/diff_new_pack.VLl5Ux/_new  2025-12-09 13:00:12.740839790 +0100
@@ -20,7 +20,7 @@
 %define skip_python36 1
 %{?sle15_python_module_pythons}
 Name:           python-pymdown-extensions
-Version:        10.17.2
+Version:        10.18
 Release:        0
 Summary:        Extension pack for Python Markdown
 License:        MIT

++++++ pymdown-extensions-10.17.2.tar.gz -> pymdown-extensions-10.18.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pymdown-extensions-10.17.2/docs/src/markdown/about/changelog.md 
new/pymdown-extensions-10.18/docs/src/markdown/about/changelog.md
--- old/pymdown-extensions-10.17.2/docs/src/markdown/about/changelog.md 
2025-11-26 16:42:10.000000000 +0100
+++ new/pymdown-extensions-10.18/docs/src/markdown/about/changelog.md   
2025-12-07 18:19:45.000000000 +0100
@@ -3,6 +3,13 @@
 ---
 # Changelog
 
+## 10.18
+
+-   **NEW**: Critic: `view` mode has been deprecated. To avoid warnings or 
future issues, explicitly set `mode` to
+    either `accept` or `reject`. In the future, the new default will be 
`accept` and the `view` mode will be removed
+    entirely.
+-   **FIX**: Block Admonition: `important` should have always been available 
as a default.
+
 ## 10.17.2
 
 -   **FIX**: Blocks: Blocks extensions will now better handle nesting of 
indented style Admonitions, Details, and Tabbed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pymdown-extensions-10.17.2/docs/src/markdown/extensions/critic.md 
new/pymdown-extensions-10.18/docs/src/markdown/extensions/critic.md
--- old/pymdown-extensions-10.17.2/docs/src/markdown/extensions/critic.md       
2025-11-26 16:42:10.000000000 +0100
+++ new/pymdown-extensions-10.18/docs/src/markdown/extensions/critic.md 
2025-12-07 18:19:45.000000000 +0100
@@ -13,6 +13,15 @@
 Critic allows you to automatically accept edits or reject the edits and render 
the output accordingly. It also allows
 for visually displaying the changes in HTML output ([mileage may 
vary](#limitations-with-previewing-critic-markup)).
 
+/// warning | Previews Deprecated
+The preview mode has been deprecated, and the default `mode` will be set to 
`accept` in the future. If you rely on
+Critic, is advised to explicitly set `mode` to either `accept` or `reject` to 
be protected against any issues related
+to this change in default and removal of the `view` mode in the future.
+
+The `view` mode is being removed simply because support was never that great, 
and in order to get the quality expected,
+the feature would have to be implemented into the core of Python Markdown, 
something that is impossible for us to do.
+///
+
 The Critic extension can be included in Python Markdown by using the following:
 
 ```py3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymdown-extensions-10.17.2/pymdownx/__meta__.py 
new/pymdown-extensions-10.18/pymdownx/__meta__.py
--- old/pymdown-extensions-10.17.2/pymdownx/__meta__.py 2025-11-26 
16:42:10.000000000 +0100
+++ new/pymdown-extensions-10.18/pymdownx/__meta__.py   2025-12-07 
18:19:45.000000000 +0100
@@ -193,5 +193,5 @@
     return Version(major, minor, micro, release, pre, post, dev)
 
 
-__version_info__ = Version(10, 17, 2, "final")
+__version_info__ = Version(10, 18, 0, "final")
 __version__ = __version_info__._get_canonical()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pymdown-extensions-10.17.2/pymdownx/blocks/admonition.py 
new/pymdown-extensions-10.18/pymdownx/blocks/admonition.py
--- old/pymdown-extensions-10.17.2/pymdownx/blocks/admonition.py        
2025-11-26 16:42:10.000000000 +0100
+++ new/pymdown-extensions-10.18/pymdownx/blocks/admonition.py  2025-12-07 
18:19:45.000000000 +0100
@@ -86,7 +86,7 @@
 
         self.config = {
             "types": [
-                ['note', 'attention', 'caution', 'danger', 'error', 'tip', 
'hint', 'warning'],
+                ['note', 'attention', 'caution', 'danger', 'error', 'tip', 
'hint', 'warning', 'important'],
                 "Generate Admonition block extensions for the given types."
             ]
         }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymdown-extensions-10.17.2/pymdownx/critic.py 
new/pymdown-extensions-10.18/pymdownx/critic.py
--- old/pymdown-extensions-10.17.2/pymdownx/critic.py   2025-11-26 
16:42:10.000000000 +0100
+++ new/pymdown-extensions-10.18/pymdownx/critic.py     2025-12-07 
18:19:45.000000000 +0100
@@ -27,6 +27,7 @@
 from markdown.preprocessors import Preprocessor
 from markdown.postprocessors import Postprocessor
 from markdown.util import STX, ETX
+from .util import warn_deprecated
 import re
 
 SOH = '\u0001'  # start
@@ -294,7 +295,10 @@
         """Initialize."""
 
         self.config = {
-            'mode': ['view', "Critic mode to run in ('view', 'accept', or 
'reject') - Default: view "],
+            'mode': [
+                'view',
+                "Critic mode to run in: 'view' (deprecated), 'accept' (future 
default), or 'reject' - Default: view "
+            ],
             'raw_view': [False, "Raw view keeps the output as the raw markup 
for view mode - Default False"]
         }
 
@@ -308,6 +312,12 @@
         post = CriticsPostprocessor(self.critic_stash)
         critic = CriticViewPreprocessor(self.critic_stash)
         critic.config = self.getConfigs()
+        if critic.config['mode'] == 'view':
+            warn_deprecated(
+                "pymdownx.critic has deprecated the 'view' mode and will 
default the option to 'accept' "
+                "in the future. It is advised to set the 'mode' option 
explicitly to either 'accept' or "
+                "'reject' to avoid issues when this change takes place."
+            )
         md.preprocessors.register(critic, "critic", 31.1)
         md.postprocessors.register(post, "critic-post", 25)
         md.registerExtensions(["pymdownx._bypassnorm"], {})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
"old/pymdown-extensions-10.17.2/tests/extensions/critic/critic (accept).html" 
"new/pymdown-extensions-10.18/tests/extensions/critic/critic (accept).html"
--- "old/pymdown-extensions-10.17.2/tests/extensions/critic/critic 
(accept).html"       2025-11-26 16:42:10.000000000 +0100
+++ "new/pymdown-extensions-10.18/tests/extensions/critic/critic (accept).html" 
1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-<p>Here is some  Markdown.  I am adding this here..  Here is some more text.  
And here is even more text that I
-am adding.  Paragraph was deleted and replaced with some spaces.</p>
-<p>Spaces were removed and a paragraph was added.</p>
-<p>And here is a comment on some
- ==text== . Substitutions are great!</p>
-<p>General block handling.</p>
-<ul>
-<li>test<ul>
-<li>test</li>
-</ul>
-</li>
-<li>test</li>
-<li>test</li>
-<li>test</li>
-</ul>
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
"old/pymdown-extensions-10.17.2/tests/extensions/critic/critic (accept).txt" 
"new/pymdown-extensions-10.18/tests/extensions/critic/critic (accept).txt"
--- "old/pymdown-extensions-10.17.2/tests/extensions/critic/critic 
(accept).txt"        2025-11-26 16:42:10.000000000 +0100
+++ "new/pymdown-extensions-10.18/tests/extensions/critic/critic (accept).txt"  
1970-01-01 01:00:00.000000000 +0100
@@ -1,32 +0,0 @@
-Here is some {--*incorrect*--} Markdown.  I am adding this{++ here.++}.  Here 
is some more {--text
-that I am removing--}text.  And here is even more {++text that I
-am ++}adding.{~~
-
-~>  ~~}Paragraph was deleted and replaced with some spaces.{~~  ~>
-
-~~}Spaces were removed and a paragraph was added.
-
-And here is a comment on {==some
- ==text== ==}{>>This works quite well. I just wanted to comment on it.<<}. 
Substitutions {~~is~>are~~} great!
-
-General block handling.
-
-{--
-
-* test
-* test
-* test
-    * test
-* test
-
---}
-
-{++
-
-* test
-    * test
-* test
-* test
-* test
-
-++}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
"old/pymdown-extensions-10.17.2/tests/extensions/critic/critic (reject).html" 
"new/pymdown-extensions-10.18/tests/extensions/critic/critic (reject).html"
--- "old/pymdown-extensions-10.17.2/tests/extensions/critic/critic 
(reject).html"       2025-11-26 16:42:10.000000000 +0100
+++ "new/pymdown-extensions-10.18/tests/extensions/critic/critic (reject).html" 
1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-<p>Here is some <em>incorrect</em> Markdown.  I am adding this.  Here is some 
more text
-that I am removingtext.  And here is even more adding.</p>
-<p>Paragraph was deleted and replaced with some spaces.  Spaces were removed 
and a paragraph was added.</p>
-<p>And here is a comment on some
- ==text== . Substitutions is great!</p>
-<p>General block handling.</p>
-<ul>
-<li>test</li>
-<li>test</li>
-<li>test<ul>
-<li>test</li>
-</ul>
-</li>
-<li>test</li>
-</ul>
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
"old/pymdown-extensions-10.17.2/tests/extensions/critic/critic (reject).txt" 
"new/pymdown-extensions-10.18/tests/extensions/critic/critic (reject).txt"
--- "old/pymdown-extensions-10.17.2/tests/extensions/critic/critic 
(reject).txt"        2025-11-26 16:42:10.000000000 +0100
+++ "new/pymdown-extensions-10.18/tests/extensions/critic/critic (reject).txt"  
1970-01-01 01:00:00.000000000 +0100
@@ -1,32 +0,0 @@
-Here is some {--*incorrect*--} Markdown.  I am adding this{++ here.++}.  Here 
is some more {--text
-that I am removing--}text.  And here is even more {++text that I
-am ++}adding.{~~
-
-~>  ~~}Paragraph was deleted and replaced with some spaces.{~~  ~>
-
-~~}Spaces were removed and a paragraph was added.
-
-And here is a comment on {==some
- ==text== ==}{>>This works quite well. I just wanted to comment on it.<<}. 
Substitutions {~~is~>are~~} great!
-
-General block handling.
-
-{--
-
-* test
-* test
-* test
-    * test
-* test
-
---}
-
-{++
-
-* test
-    * test
-* test
-* test
-* test
-
-++}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
"old/pymdown-extensions-10.17.2/tests/extensions/critic/critic (view).html" 
"new/pymdown-extensions-10.18/tests/extensions/critic/critic (view).html"
--- "old/pymdown-extensions-10.17.2/tests/extensions/critic/critic (view).html" 
2025-11-26 16:42:10.000000000 +0100
+++ "new/pymdown-extensions-10.18/tests/extensions/critic/critic (view).html"   
1970-01-01 01:00:00.000000000 +0100
@@ -1,30 +0,0 @@
-<p>Here is some <del class="critic"><em>incorrect</em></del> Markdown.  I am 
adding this<ins class="critic"> here.</ins>.  Here is some more <del 
class="critic">text
-that I am removing</del>text.  And here is even more <ins class="critic">text 
that I
-am </ins>adding.<del class="critic break">&nbsp;</del><ins class="critic">  
</ins>Paragraph was deleted and replaced with some spaces.<del class="critic">  
</del></p>
-<ins class="critic break">&nbsp;</ins>
-<p>Spaces were removed and a paragraph was added.</p>
-<p>And here is a comment on <mark class="critic">some
- ==text== </mark><span class="critic comment">This works quite well. I just 
wanted to comment on it.</span>. Substitutions <del class="critic">is</del><ins 
class="critic">are</ins> great!</p>
-<p>General block handling.</p>
-<del class="critic block">
-<ul>
-<li>test</li>
-<li>test</li>
-<li>test<ul>
-<li>test</li>
-</ul>
-</li>
-<li>test</li>
-</ul>
-</del>
-<ins class="critic block">
-<ul>
-<li>test<ul>
-<li>test</li>
-</ul>
-</li>
-<li>test</li>
-<li>test</li>
-<li>test</li>
-</ul>
-</ins>
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
"old/pymdown-extensions-10.17.2/tests/extensions/critic/critic (view).txt" 
"new/pymdown-extensions-10.18/tests/extensions/critic/critic (view).txt"
--- "old/pymdown-extensions-10.17.2/tests/extensions/critic/critic (view).txt"  
2025-11-26 16:42:10.000000000 +0100
+++ "new/pymdown-extensions-10.18/tests/extensions/critic/critic (view).txt"    
1970-01-01 01:00:00.000000000 +0100
@@ -1,32 +0,0 @@
-Here is some {--*incorrect*--} Markdown.  I am adding this{++ here.++}.  Here 
is some more {--text
-that I am removing--}text.  And here is even more {++text that I
-am ++}adding.{~~
-
-~>  ~~}Paragraph was deleted and replaced with some spaces.{~~  ~>
-
-~~}Spaces were removed and a paragraph was added.
-
-And here is a comment on {==some
- ==text== ==}{>>This works quite well. I just wanted to comment on it.<<}. 
Substitutions {~~is~>are~~} great!
-
-General block handling.
-
-{--
-
-* test
-* test
-* test
-    * test
-* test
-
---}
-
-{++
-
-* test
-    * test
-* test
-* test
-* test
-
-++}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pymdown-extensions-10.17.2/tests/extensions/critic/tests.yml 
new/pymdown-extensions-10.18/tests/extensions/critic/tests.yml
--- old/pymdown-extensions-10.17.2/tests/extensions/critic/tests.yml    
2025-11-26 16:42:10.000000000 +0100
+++ new/pymdown-extensions-10.18/tests/extensions/critic/tests.yml      
1970-01-01 01:00:00.000000000 +0100
@@ -1,16 +0,0 @@
-__default__: {}
-
-critic (accept):
-  extensions:
-    pymdownx.critic:
-      mode: accept
-
-critic (reject):
-  extensions:
-    pymdownx.critic:
-      mode: reject
-
-critic (view):
-  extensions:
-    pymdownx.critic:
-      mode: view
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
"old/pymdown-extensions-10.17.2/tests/extensions/escapeall/escapeall 
(critic).html" 
"new/pymdown-extensions-10.18/tests/extensions/escapeall/escapeall 
(critic).html"
--- "old/pymdown-extensions-10.17.2/tests/extensions/escapeall/escapeall 
(critic).html" 2025-11-26 16:42:10.000000000 +0100
+++ "new/pymdown-extensions-10.18/tests/extensions/escapeall/escapeall 
(critic).html"   1970-01-01 01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-<p>We shouldn't escape STX and ETX characters:</p>
-<p>Don't escape crtiic placeholder: <span class="critic 
comment">comment</span></p>
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
"old/pymdown-extensions-10.17.2/tests/extensions/escapeall/escapeall 
(critic).txt" 
"new/pymdown-extensions-10.18/tests/extensions/escapeall/escapeall (critic).txt"
--- "old/pymdown-extensions-10.17.2/tests/extensions/escapeall/escapeall 
(critic).txt"  2025-11-26 16:42:10.000000000 +0100
+++ "new/pymdown-extensions-10.18/tests/extensions/escapeall/escapeall 
(critic).txt"    1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-We shouldn't escape STX and ETX characters:
-
-Don't escape crtiic placeholder: \{>>comment<<}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pymdown-extensions-10.17.2/tests/extensions/escapeall/tests.yml 
new/pymdown-extensions-10.18/tests/extensions/escapeall/tests.yml
--- old/pymdown-extensions-10.17.2/tests/extensions/escapeall/tests.yml 
2025-11-26 16:42:10.000000000 +0100
+++ new/pymdown-extensions-10.18/tests/extensions/escapeall/tests.yml   
2025-12-07 18:19:45.000000000 +0100
@@ -6,12 +6,6 @@
       hardbreak: True
       nbsp: True
 
-escapeall (critic):
-  extensions:
-    pymdownx.escapeall:
-    pymdownx.critic:
-      mode: view
-
 escapeall (ws normal):
   extensions:
     pymdownx.escapeall:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pymdown-extensions-10.17.2/tests/test_extensions/test_critic.py 
new/pymdown-extensions-10.18/tests/test_extensions/test_critic.py
--- old/pymdown-extensions-10.17.2/tests/test_extensions/test_critic.py 
1970-01-01 01:00:00.000000000 +0100
+++ new/pymdown-extensions-10.18/tests/test_extensions/test_critic.py   
2025-12-07 18:19:45.000000000 +0100
@@ -0,0 +1,263 @@
+"""Test caret."""
+from .. import util
+import pytest
+
+
+class TestCriticViewMode(util.MdCase):
+    """Test view mode."""
+
+    extension = [
+        'pymdownx.critic'
+    ]
+    extension_configs = {
+        "pymdownx.critic": {
+            "mode": 'view'
+        }
+    }
+
+    @pytest.mark.filterwarnings("ignore")
+    def test_view(self):
+        """Test view mode."""
+
+        self.check_markdown(
+            R"""
+            Here is some {--*incorrect*--} Markdown.  I am adding this{++ 
here.++}.  Here is some more {--text
+            that I am removing--}text.  And here is even more {++text that I
+            am ++}adding.{~~
+
+            ~>  ~~}Paragraph was deleted and replaced with some spaces.{~~  ~>
+
+            ~~}Spaces were removed and a paragraph was added.
+
+            And here is a comment on {==some
+             ==text== ==}{>>This works quite well. I just wanted to comment on 
it.<<}. Substitutions {~~is~>are~~} great!
+
+            General block handling.
+
+            {--
+
+            * test
+            * test
+            * test
+                * test
+            * test
+
+            --}
+
+            {++
+
+            * test
+                * test
+            * test
+            * test
+            * test
+
+            ++}
+            """,  # noqa: E501
+            """
+            <p>Here is some <del class="critic"><em>incorrect</em></del> 
Markdown.  I am adding this<ins class="critic"> here.</ins>.  Here is some more 
<del class="critic">text
+            that I am removing</del>text.  And here is even more <ins 
class="critic">text that I
+            am </ins>adding.<del class="critic break">&nbsp;</del><ins 
class="critic">  </ins>Paragraph was deleted and replaced with some spaces.<del 
class="critic">  </del></p>
+            <ins class="critic break">&nbsp;</ins>
+            <p>Spaces were removed and a paragraph was added.</p>
+            <p>And here is a comment on <mark class="critic">some
+             ==text== </mark><span class="critic comment">This works quite 
well. I just wanted to comment on it.</span>. Substitutions <del 
class="critic">is</del><ins class="critic">are</ins> great!</p>
+            <p>General block handling.</p>
+            <del class="critic block">
+            <ul>
+            <li>test</li>
+            <li>test</li>
+            <li>test<ul>
+            <li>test</li>
+            </ul>
+            </li>
+            <li>test</li>
+            </ul>
+            </del>
+            <ins class="critic block">
+            <ul>
+            <li>test<ul>
+            <li>test</li>
+            </ul>
+            </li>
+            <li>test</li>
+            <li>test</li>
+            <li>test</li>
+            </ul>
+            </ins>
+            """,  # noqa: E501
+            True
+        )
+
+
+class TestCriticAcceptMode(util.MdCase):
+    """Test accept mode."""
+
+    extension = [
+        'pymdownx.critic'
+    ]
+    extension_configs = {
+        "pymdownx.critic": {
+            "mode": 'accept'
+        }
+    }
+
+    def test_accept(self):
+        """Test accept mode."""
+
+        self.check_markdown(
+            R"""
+            Here is some {--*incorrect*--} Markdown.  I am adding this{++ 
here.++}.  Here is some more {--text
+            that I am removing--}text.  And here is even more {++text that I
+            am ++}adding.{~~
+
+            ~>  ~~}Paragraph was deleted and replaced with some spaces.{~~  ~>
+
+            ~~}Spaces were removed and a paragraph was added.
+
+            And here is a comment on {==some
+             ==text== ==}{>>This works quite well. I just wanted to comment on 
it.<<}. Substitutions {~~is~>are~~} great!
+
+            General block handling.
+
+            {--
+
+            * test
+            * test
+            * test
+                * test
+            * test
+
+            --}
+
+            {++
+
+            * test
+                * test
+            * test
+            * test
+            * test
+
+            ++}
+            """,  # noqa: E501
+            """
+            <p>Here is some  Markdown.  I am adding this here..  Here is some 
more text.  And here is even more text that I
+            am adding.  Paragraph was deleted and replaced with some 
spaces.</p>
+            <p>Spaces were removed and a paragraph was added.</p>
+            <p>And here is a comment on some
+             ==text== . Substitutions are great!</p>
+            <p>General block handling.</p>
+            <ul>
+            <li>test<ul>
+            <li>test</li>
+            </ul>
+            </li>
+            <li>test</li>
+            <li>test</li>
+            <li>test</li>
+            </ul>
+            """,  # noqa: E501
+            True
+        )
+
+
+class TestCriticRejectMode(util.MdCase):
+    """Test reject mode."""
+
+    extension = [
+        'pymdownx.critic'
+    ]
+    extension_configs = {
+        "pymdownx.critic": {
+            "mode": 'reject'
+        }
+    }
+
+    def test_reject(self):
+        """Test reject mode."""
+
+        self.check_markdown(
+            R"""
+            Here is some {--*incorrect*--} Markdown.  I am adding this{++ 
here.++}.  Here is some more {--text
+            that I am removing--}text.  And here is even more {++text that I
+            am ++}adding.{~~
+
+            ~>  ~~}Paragraph was deleted and replaced with some spaces.{~~  ~>
+
+            ~~}Spaces were removed and a paragraph was added.
+
+            And here is a comment on {==some
+             ==text== ==}{>>This works quite well. I just wanted to comment on 
it.<<}. Substitutions {~~is~>are~~} great!
+
+            General block handling.
+
+            {--
+
+            * test
+            * test
+            * test
+                * test
+            * test
+
+            --}
+
+            {++
+
+            * test
+                * test
+            * test
+            * test
+            * test
+
+            ++}
+            """,  # noqa: E501
+            """
+            <p>Here is some <em>incorrect</em> Markdown.  I am adding this.  
Here is some more text
+            that I am removingtext.  And here is even more adding.</p>
+            <p>Paragraph was deleted and replaced with some spaces.  Spaces 
were removed and a paragraph was added.</p>
+            <p>And here is a comment on some
+             ==text== . Substitutions is great!</p>
+            <p>General block handling.</p>
+            <ul>
+            <li>test</li>
+            <li>test</li>
+            <li>test<ul>
+            <li>test</li>
+            </ul>
+            </li>
+            <li>test</li>
+            </ul>
+            """,
+            True
+        )
+
+
+class TestCriticEscapeAll(util.MdCase):
+    """Test critic with escaping."""
+
+    extension = [
+        'pymdownx.critic',
+        'pymdownx.escapeall'
+    ]
+    extension_configs = {
+        "pymdownx.critic": {
+            "mode": 'view'
+        }
+    }
+
+    @pytest.mark.filterwarnings("ignore")
+    def test_escape(self):
+        """Test with escapes."""
+
+        self.check_markdown(
+            R"""
+            We shouldn't escape STX and ETX characters:
+
+            Don't escape crtiic placeholder: \{>>comment<<}
+            """,
+            """
+            <p>We shouldn't escape STX and ETX characters:</p>
+            <p>Don't escape crtiic placeholder: <span class="critic 
comment">comment</span></p>
+            """,
+            True
+        )

Reply via email to