deathau / obsidian-snippets

793 stars 140 forks source link

Notation Color Blocks Only Works with Legacy Editor #9

Open tjex opened 2 years ago

tjex commented 2 years ago

Notation color blocks don't render when using the live preview, they just stay as code blocks. Only when using the legacy editor and toggling preview mode do they render.
Tested using minimal theme 5.2 and notation-color-blocks as of commit d8caed4 Screenshot 2022-06-27 at 21 23 50

Yehuda-Bergstein commented 1 year ago

Hi! did you find a solution when not using the legacy editor?

tjex commented 1 year ago

not a direct solution to use this snipped. I stopped using it and instead have just been marking with obsidian's highlights (==highlight==) or the diff code.

+ this is blue
- this is red
Yehuda-Bergstein commented 1 year ago

Cool, thanks How do I use the "+, -" ? And how do you change the color of the text?

tjex commented 1 year ago

you need to write a code block with the "language type" as diff

As below:

Screen Shot 2023-01-22 at 15 37 20

whatever text you have on a line starting with + will be blue, and red with -

Yehuda-Bergstein commented 1 year ago

Thanks!

you need to write a code block with the "language type" as diff

As below: Screen Shot 2023-01-22 at 15 37 20

whatever text you have on a line starting with + will be blue, and red with -