Replies: 4 comments 27 replies
-
Please provide your mkdocs config as I think you are missing the SuperFences plugin. Fenced code blocks are not part of the original Markdown spec, so they are not enabled by default. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
So I understand exactly here, what you're saying is Pygments gets the language-lang class, uses it, and doesn't return it in any way. Given that's the case, how do you handle line numbers and highlighting? Do you read that first? If so, you'd read the lang at that same time, no? I'm sure that once it's off to Pygments, it's too late, but how do you handle |
Beta Was this translation helpful? Give feedback.
-
Hello! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
New to this world so forgive my ignorance. Wasn't sure if this should go in discussion or issues but I figure it's an operator problem so I decided to post here. I'm using MkDocs w/ Material theme for documentation. Love the theme but code blocks aren't rendering properly for me even though they render just fine in my Visual Studio MD preview (and in other themes) and also in my GitLab preview.
My code:

Visual Studio MD preview:

MkDocs result:

I have messed around with indentations and spacing and all kinds of things. Any help?
Beta Was this translation helpful? Give feedback.
All reactions