forked from pool/python-pymdown-extensions
* **NEW**: SuperFences: Add `relaxed_headers` option which can tolerate bad content in the fenced code header. When enabled, code blocks with bad content in the header will likely still convert into code blocks, often respecting the specified language. * **NEW**: Add type hints to the Blocks interface and a few additional files. * **FIX**: Blocks: Fix some corner cases of nested blocks with lists. * **FIX**: Tab and Tabbed: Fix a case where tabs could fail if `combine_header_slug` was enabled and there was no header. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymdown-extensions?expand=0&rev=28
13 lines
799 B
Diff
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())
|