What I’m trying to do
Using the diff
code-block with indentation makes obsidian render everything else after the code-bloc as code as well in editing view.
Steps:
- open sandbox vault
- make a new note
- add the following content:
```diff
- foo
+ bar
```
# hello
foo
bar
baz
Now in editing mode everything after the code block has appearance of code as well.
If we remove the indentation from the diff
code-block or change the code-block language from diff
to anything else - the issue disappears.