Rudolf Adamkovič <[email protected]> writes:

> LaTeX fragments are still off-by-one:
>
> foo  $x$  bar
>     ^^^^
>     leading space character is fontified with `org-block', nay!

Well. I won't touch this one and instead postpone until
https://orgmode.org/list/87ee7c9quk.fsf@localhost

The code there is fragile and this particular scenario is tricky.
It is not only about whitespace, but also about other symbols allowed
before $..$-delimited latex fragments. And only $..$-delimited.

foo;$x$  bar - leading char ";" incorrectly fontified
$x$  bar - all fine
foo;$$x$$  bar - all fine
foo;\[x\]  bar - all fine
foo;\(x\)  bar - all fine

Applied, onto main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=7235abfae
*Not* fixed yet.
Not Urgent.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to