Just be aware that if some user will copy the text into the IDE, he would get errors for the invisible space character and would need to delete them manually.
So I still see this as very annoying bug that should be fixed in the Obsidian. And it has been reported more than a year ago
Currently, I’m learning Rust and I usually put it in callout to collapse it (reduce distraction). Whenever I declare sth like Box<T>, it would break the block. So I have to workaround with Box< T >, which annoys me do much. I don’t know this is a bug by Markdown flavor or because of how live preview is implemented. But if it’s because of live preview, please, I’m begging Obsidian team to fix bug
Also made an account just to talk about this issue. It’s currently the biggest issue I have with Obsidian and it’s made me consider other documentation/note options, just because the current syntax means it takes SIGNIFICANTLY longer for me to write notes because I’m busy inserting angle brackets for blockquote markup manually in the XML snippets I’m trying to insert into my callouts–and god forbid I ever try to nest callouts and then insert a code block into that. This, of course, ignores the live preview issues that also pop up with this feature.
However, I did find an acceptable workaround: just use the Admonitions plugin instead. It’s what everyone apparently used before Obsidian’s native callouts, and its syntax is much, much friendlier for this particular use-case than the blockquote-based markout Obsidian uses–editing and copy/pasting code blocks largely just works, whereas doing any of that stuff in the native callouts feature is prone to breakage and formatting issues. And Admonitions works perfectly fine in live preview mode too!
The only thing that sucks about this approach is that the Admonitions plugin is in maintenance mode, probably because it was “superseded” by Obsidian’s native callouts feature. But it’s so much more difficult to work with than Admonitions that I’ll just live with using a quasi-deprecated plugin or think about migrating out of the Obsidian ecosystem entirely.
I made an account just to talk about this issue.
I understand that it might be a difficult bug to solve, but please don’t just write this issue under “not supported” : Obsidian should be able to do this.
# Lorem ipsum
Lorem *ipsum* **dolor** sit *amet*, **consectetur** adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
> [!IMPORTANT]
> Lorem *ipsum* :
> ```xml
> <tag name="This xml line is read by Obsidian while it shouldn't.">
> ```
> This part of the document is now broken because the XML line is interpreted as an HTML tag and is never closed.
> Lorem *ipsum*
# Lorem ipsum
Lorem *ipsum* **dolor** sit *amet*, **consectetur** adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
I had some issues installing your plugin from mobile, but I just want to say you’re freaking amazing @the_tree !!!
If you have a way for me to send you a coffee please let me know
Btw you should totally add this as an official obsidian plugin