Open SanJacobs opened 2 years ago
That is an interesting idea, however it would then no longer be a valid HTML comment, so the formula might be displayed in some rendering engines.
https://developer.mozilla.org/en-US/docs/Web/API/Comment
I'll have to think about this some more.
True. Of course, this probably shouldn't be a forced transition from -->
to --!>
. However, adding it as a recognized alternative for us users who don't care about the rendering outside of obsidian would be great.
Hi just wanted to chip in: I'm having the following issue
This line is provoking an error message:
<!-- TBLFM: @I$>..@>$>=sum($2..$7) -->
It get's highlighted like this:
When I hover over it, the tooltip says "Misplaced @".
I tried CSS to stop rendering comments in live-preview, but that just removes the part until the first $ symbol:
I'd really appreciate some help here, this bright yellow highlighting is super annoying.
Describe the bug Parts of formulas past any $-signs get evaluated by Obsidian as if it was normal text, rendering markdown formatting characters as text styling.
This formula:
Displays like this, when not in source mode:
And like this, with ligatures enabled on mobile:
This is of course expected behavior, given that this is just text in a markdown document.
However, a really easy fix would be if the formulas could be written with the ending arrow containing an exclamation point (
--!>
), then they seem to display correctly/less-confusingly.(I also happen to find this more visually appealing, because it is symmetrical)
When doing that, though, they aren't recognized by the plugin as a formula.
To Reproduce
Expected behavior I expect to see every symbol I have written, and for them to be styled the same, because in this context they are not formatting characters, they are functions.
Desktop:
Mobile: