Python-Markdown / markdown

A Python implementation of John Gruber’s Markdown with Extension support.
https://python-markdown.github.io/
BSD 3-Clause "New" or "Revised" License
3.74k stars 858 forks source link

Distinguish betweet block code and inline code #1376

Closed dims12 closed 1 year ago

dims12 commented 1 year ago

Currently I see that both are rendered as just <code> which is indistinguisheable and incorrect. Any way to fix?

waylan commented 1 year ago

I suspect you have not enabled the fenced_code extension.

As a reminder, fenced code blocks are not part of the original rules (which we follow). Therefore, they are not enabled by default. I realize that fenced code blocks have become standard in many implementations, including Commonmark, but, as noted in the "note" on our homepage, we are not a Commonmark implementation.

waylan commented 1 year ago

I am closing this due to the lack of feedback. If the issue persists after enabling the fenced_code extension, please provide an example and we can reopen the issue.