From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: html-encode in mathjax latex fragments Date: Tue, 01 Jul 2014 10:08:44 -0400 Message-ID: <111caabc0a02f469517b4e70fbfd2f56@mail.rickster.com> References: <87pphrh83k.fsf@gmail.com> <87zjgvv6q5.fsf@nicolasgoaziou.fr> <878uofm6ol.fsf@gmail.com> <87wqbyfzr5.fsf@gmail.com> <87zjgumzup.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1yk2-0004Nf-3f for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 10:09:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1yju-0003wX-IW for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 10:09:02 -0400 Received: from mail.rickster.com ([204.62.15.78]:40741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1yju-0003vE-FJ for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 10:08:54 -0400 In-Reply-To: <87zjgumzup.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte , Nick Dokos , emacs-orgmode@gnu.org On 2014-06-30 06:54, Nicolas Goaziou wrote: > Hello, > > Eric Schulte 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