14
0
Files
python-pymdown-extensions/fix-toc-list-check.patch
Steve Kowalik 141e4924c9 - Update to 10.12:
* NEW: Blocks: Blocks extensions no longer considered in beta.
  * NEW: Details: Details is marked as "legacy" in documentation in favor
    of the new pymdownx.blocks.details approach.
  * NEW: Tabbed: Tabbed is marked as "legacy" in documentation in favor of
    the new pymdownx.blocks.tab approach.
  * NEW: Caption: Add new "blocks" style extension called Caption which
    helps with specifying figures with captions.
  * NEW: Emoji: Add a new strict option that will raise an exception if an
    emoji is used whose name has changed, removed, or never existed.
  * FIX: Emoji: Emoji links should be generated such that they point to the
    new CDN version.
  * FIX: SuperFences: Fix a regression where certain patterns could cause
    a hang.
  * FIX: SuperFences: Fix regression where an omitted language in conjunction
    with options in the fenced header can cause a fence to not be parsed.
  * FIX: BetterEm: Add better support for *em, **em,strong*** and _em,
    __em,strong___ cases.
  * FIX: Caret: Add better support for *sup, **sup,ins***.
  * FIX: Tilde: Add better support for *sub, **sub,del***.
  * FIX: FancyLists: Remove a mistaken semicolon from injected classes.
  * NEW: FancyLists: Add new FancyLists extension.
  * NEW: Emoji: Update Twemoji data to the latest.
  * FIX: PathConverter: Fixes for latest changes in Python regarding
    urlunparse.
  * NEW: Officially support Python 3.13.
  * FIX: Snippets: Better handling of cases where URL snippet requests
    contain no header length.
  * FIX: Snippets: Fix snippet line range with a start of line 1.
  * NEW: Require Python Markdown 3.6+.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymdown-extensions?expand=0&rev=16
2024-11-03 02:38:55 +00:00

13 lines
799 B
Diff

Index: pymdown-extensions-10.7.1/tests/test_extensions/test_smartsymbols.py
===================================================================
--- pymdown-extensions-10.7.1.orig/tests/test_extensions/test_smartsymbols.py
+++ pymdown-extensions-10.7.1/tests/test_extensions/test_smartsymbols.py
@@ -139,4 +139,6 @@ class TestSmartSymbols(util.MdCase):
md = markdown.Markdown(extensions=['toc', 'pymdownx.smartsymbols'])
md.convert('# *Foo* =/= `bar`')
- self.assertEqual(md.toc_tokens, [{'level': 1, 'id': 'foo-bar', 'name': 'Foo ≠ bar', 'children': []}])
+ contains = {'level': 1, 'id': 'foo-bar', 'name': 'Foo ≠ bar', 'children': []}
+ self.assertEqual(len(md.toc_tokens), 1)
+ self.assertLessEqual(contains.items(), md.toc_tokens[0].items())