emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] Escaping "<" and ">" inside math blocks when exporting to HTML/Mat


From: Ihor Radchenko
Subject: [BUG] Escaping "<" and ">" inside math blocks when exporting to HTML/MathJax (was: Inequalities in math blocks)
Date: Sun, 06 Nov 2022 03:05:54 +0000

Max Nikulin <manikulin@gmail.com> writes:

> This is a reminder of an old bug. From my point of view it is serious 
> enough, but not release critical due to its age.
>
> &<> characters must be escaped as HTML entities when LaTeX snippets and 
> blocks are exported for MathJax
>
> Form my year-old notes:
> - =#+options: tex:verbatim= properly escapes symbols.
> - There are functions that performs such replacement in ox-html and 
> ox-odt, but `org-format-latex` resides in org.el, so some refactoring 
> and backward compatibility stubs are necessary.

>From my understanding, all we need is to fix `org-format-latex' by
calling `org-html-encode-plain-text'.

Could you please elaborate about refactoring and backward compatibility?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
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

[Prev in Thread] Current Thread [Next in Thread]