From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: html-encode in mathjax latex fragments Date: Mon, 30 Jun 2014 12:54:54 +0200 Message-ID: <87zjgumzup.fsf@nicolasgoaziou.fr> References: <87pphrh83k.fsf@gmail.com> <87zjgvv6q5.fsf@nicolasgoaziou.fr> <878uofm6ol.fsf@gmail.com> <87wqbyfzr5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1ZEC-0002al-Nt for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 06:54:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1ZDy-0002VL-U4 for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 06:54:28 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:56988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1ZDy-0002Uq-NN for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 06:54:14 -0400 In-Reply-To: <87wqbyfzr5.fsf@gmail.com> (Eric Schulte's message of "Mon, 30 Jun 2014 05:47:56 -0400") 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 Cc: Nick Dokos , emacs-orgmode@gnu.org 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. Regards, -- Nicolas Goaziou