emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] html-encode in mathjax latex fragments


From: Rick Frankel
Subject: Re: [O] html-encode in mathjax latex fragments
Date: Tue, 01 Jul 2014 10:08:44 -0400
User-agent: Roundcube Webmail/0.9.0

On 2014-06-30 06:54, Nicolas Goaziou wrote:
Hello,

Eric Schulte <address@hidden> writes:

From the link above it sounds like replacing just "<", ">" and "&"
should be sufficient, if the full html encoding in my previous patch was
too heavy weight.

By default, `org-html-encode-plain-text' just takes care about "<", ">"
and "&", which is what you're looking. However, it is configurable
through `org-html-protect-char-alist', which may cause trouble.

FWIW I think a hard-coded function dedicated to the task, or simply
a hard-coded replacement within `org-html-format-latex', may be safer in
the long run. Anyway Rick Frankel may have an opinion here.

Not sure why `org-html-protect-char-alist' is a custom and not just a
var, but IMHO, `org-html-encode-plain-text' is the correct solution.

rick



reply via email to

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