radude / mdx_truly_sane_lists

Extension for Python-Markdown that makes lists truly sane. Custom indents for nested lists and fix for messy linebreaks and paragraphs between lists.
MIT License
81 stars 10 forks source link

Bug: Config value: 'markdown_extensions'. Error: Failed loading extension "mdx_truly_sane_lists". #9

Closed nvuillam closed 2 years ago

nvuillam commented 2 years ago

Hi, on MegaLinter , to generate documentation, we use mike, mkdocs-material and mdx_truly_sane_lists as markdown extension.

It seems that since new markdown PyPackage version 3.4, mdx_truly_sane_lists does not succeed to be loaded anymore

Config value: 'markdown_extensions'. Error: Failed loading extension "mdx_truly_sane_lists".

It seems related to this breaking change -> https://python-markdown.github.io/change_log/release-3.4/#the-tables-extension-now-uses-a-style-attribute-instead-of-an-align-attribute-for-alignment

Error is visible in this job -> https://github.com/oxsecurity/megalinter/runs/7363159003?check_suite_focus=true

Maybe you could provide a patch ? :)

Thanks & best regards

nvuillam commented 2 years ago

Current workaround: force 3.3.7 version before installing mdx_truly_sane_lists

ex: pip install --upgrade markdown==3.3.7 mdx_truly_sane_lists

xmatthias commented 2 years ago

I think it's actually the removal of markdown.version source which causes this, not the align attribute (at least at first glance, this extension doesn't contain the word "align" ...).

hadim commented 2 years ago

We are having the same error. We can't pin markdown to 3.3.7 so we had to disable the extension for the moment.

I noticed that simply disabling mdx_truly_sane_lists is not sufficient and markdown_include.include must be disabled too.

relativisticelectron commented 2 years ago

https://github.com/radude/mdx_truly_sane_lists/pull/10 fixes it for me. Can someone else test it?

radude commented 2 years ago

Fixed by #10. I'll update the pip package in a few hours.

relativisticelectron commented 2 years ago

Fixed by #10. I'll update the pip package in a few hours.

wonderful!

nvuillam commented 2 years ago

Fixed by #10. I'll update the pip package in a few hours.

Thanks a lot :)