Open Aratopn opened 3 months ago
Hmm. Interesting. The 4th picture is correct in editing mode. Can you send me the readme file?
Do you mean .txt file with this markdown text? I am a bit newbie) test.txt
sorry, I meant the markdown file. my bad :) Yeah, this works. I will look at it, and get back to you
Hi @Aratopn, sorry for the delay, but I finally had time to look at this problem. I looked at the document you sent. Only the second code block is not working correctly.
So, the problem is, that if you simply create a code block and then push it right with TAB, then Obsidian actually "converts" it to inline code:
I probably could make this work, so that background color, and other colors are applied correctly, but the problem is, that syntax highlighting is also not applied. Even if I did all that, this code block would still not work as a normal code block does. I see this as an Obsidian issue, but hopefully they will fix it soon.
However, if you want to indent a code block, you can do that, by adding it to a list. But I see from your document, that you already figured that out.
I have noticed indented code blocks weird behavior. I think this started after the new obsidian update (v1.5.11, 19.03.2024).
Obsidian - v 1.5.11 CodeblockCustomizer - v 1.2.6
Editing (source mode)
![2_editing_source](https://github.com/mugiwara85/CodeblockCustomizer/assets/52358105/acdd1f0f-6956-48a8-8c2c-ee7c3ac294d7)
Editing
![2_editing](https://github.com/mugiwara85/CodeblockCustomizer/assets/52358105/842ad030-1e0d-42fa-8f69-431845b05d26)
Reading
![2_reading](https://github.com/mugiwara85/CodeblockCustomizer/assets/52358105/ab3109cc-ed72-45de-8ecc-891a3a893496)