Closed mattiaverga closed 11 months ago
Python Markdown is an old school Markdown parser and fenced code blocks were not part of the spec when it was created. Many parsers these days have fenced code blocks by default, but Python Markdown implements them via extensions as it did originally. You can either use fenced_code
or pymdownx.superfences
. Personally, I'd recommend the latter only because it plays nice in nested constructs.
Got it, thanks.
Consider these examples:
This is in line with other implementations, as I can see in Babelmark III.
Now this:
seems a bit unexpected, compared to other Babelmark implementations. To add more fun, the online babelmark tool shows that markdown 3.3.2 produces the correct output, but even if I try to pin the markdown version locally I always get the wrong output...