mdx_truly_sane_lists icon indicating copy to clipboard operation
mdx_truly_sane_lists copied to clipboard

fix: version deprecation warning from markdown

Open michsien104 opened this issue 1 year ago • 2 comments

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 ?

michsien104 avatar Jul 25 '23 10:07 michsien104

@radude, can we get this merged and released?

ajschmidt8 avatar Jul 26 '23 19:07 ajschmidt8

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.

chausner avatar Aug 16 '23 19:08 chausner