Bug in showing formatted code in .md

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

I am trying to write notes which has code examples. After some point, the code doesn’t show up as formatted code and it’s just showing a bunch of


rather than



This looks fine on VsCode →

Things I have tried

Nothing tried as such, but looks like it’s a bug. I tried deleting and rewriting the code, using `, but nothing works.

Seems like an occasional bug that can be fixed by restarting Obsidian. Does restarting work in your case?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.