Code Block improvement in Display View

I’m facing an issue with the rendering of code blocks.

  • If a block has language defined inside, it is not rendered properly.
  • Any text following that particular language-defined block is rendered badly.
  • Preceding text is OK.

Below is a sample text


If language is removed everything is fine


I’m not asking for code-language recognition here, which is a completely separate feature (who wouldn’t want that? :slightly_smiling_face:). Properly rendered raw text is what I seek.

Thanks.

I think I see what you’re talking about.

You’re putting the name of a language after the first three backticks… is that right?

But if you look at the Knowledge Base page concerning fenced code blocks, you don’t see any mention of this as an option.

So no, this option is not currently supported.

Let me look into adding some support for this.

Thanks for bringing this to my attention.

1 Like

Exactly!

This is common for markdown editors that support syntax highlighting.

Check out the latest beta and let me know if this helps.

That worked. thank you!