mdx_truly_sane_lists
mdx_truly_sane_lists copied to clipboard
fix: version deprecation warning from markdown
Closing #18
Fix of version
imported from markdown
which gives the deprecation warning.
Can you have a look here @radude for a review and get rid of this annoying deprecation warning ?
@radude, can we get this merged and released?
Note that the attribute markdown.__version__
had been added in markdown 3.0.1. In version 3.0 and earlier, only markdown.version
is present.
An alternative fix to the one proposed here could be to swap the try and except blocks, to default to the newer version and only try the old approach if the new one fails.