CodeblockCustomizer
CodeblockCustomizer copied to clipboard
Indented Blocks Problem
I'm really unsure of how to describe this problem honestly which is why I have so many screenshots.
Obsidian: v1.5.12 Codeblock Customizer Plugin: 1.2.6
Can you send me your md file? But as i can see the code blocks are not part of the list, that's what causes the problem, I think. But I will know more if you send me your md file.
I see the problem now. You did not indent the code blocks properly.
You did not indent the line with the closing backticks. Just go into that line press Home to get to the beginning of the line, and TAB. That's it. After that it should work.
Thanks for the response. After indenting the lines on some of my learning notes, I'm still having this problem. The first image is from the Source Mode and the second one is from Live Preview.
can you send me your document again?
Here you go! Multi-Block.md
Indenting code blocks only works unfortunately if they are in a list. The problem is that obsidian converts indented code blocks to inline code. This also means that they are not handled as code blocks anymore, because the required classes are not associated with the lines. I haven't found a solution for this yet, but I'll take a look again, since you are the second person (#78) with this problem. I consider it as an Obsidian problem though. If I find a workaround, I'll let you know. I leave this issue open until then.
I do have also a highlighting problem but no need to spam open issues. Technically I think it's well placed in here anyway. I hope you don't mind :)
My edit view works great.
However when I'm switching to reading view it looks like this:
As I looked through some issues targeting kind of a similar problem where the reading view is working - except for indenting issues. But I cannot see any of those. That's the file I was taking the screen shots from. I kept it as simple as possible.
Since I saw it working for others I'm curious why my reading view wouldn't work correctly.
I'm currently working with Obsidian 1.6.7 and Codeblock Customizer 1.2.7 - with almost all default settings except "Enable editor active line highlight", which I turned off. I also tried to disable all other community plugins to check whether one of them is causing issues. Sadly, that didn't do the trick.. :/
Besides my issue: Awesome plugin!
@olaffthunder specify cpp as code block language ;)
Bloody hell.. Thank you for pointing out the obvious thing I didn't try... ><
Bloody hell.. Thank you for pointing out the obvious thing I didn't try... ><
No problem :)