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

2014-07-28 Thread Bastien
Hi Rick, Rick Frankel writes: > 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. I made `org-html-protect-char-alist' a defvar. -- Bastien

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

2014-07-01 Thread Rick Frankel
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 abou

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

2014-06-30 Thread Nicolas Goaziou
Hello, Nick Dokos writes: > See > >http://docs.mathjax.org/en/latest/tex.html#tex-and-latex-in-html-documents > > for some gotchas. Thank you. Regards, -- Nicolas Goaziou

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

2014-06-30 Thread Nicolas Goaziou
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 l

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

2014-06-30 Thread Eric Schulte
Nick Dokos writes: > Nicolas Goaziou writes: > >> Hello, >> >> Eric Schulte writes: >> >>> I noticed equations with "<"'s weren't displaying correctly in HTML >>> export using mathjax. The attached patch fixes this by html-encoding >>> latex fragments for mathjax HTML export. I imagine this c

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

2014-06-29 Thread Nick Dokos
Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >> I noticed equations with "<"'s weren't displaying correctly in HTML >> export using mathjax. The attached patch fixes this by html-encoding >> latex fragments for mathjax HTML export. I imagine this change would be >> generally use

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

2014-06-29 Thread Nicolas Goaziou
Hello, Eric Schulte writes: > I noticed equations with "<"'s weren't displaying correctly in HTML > export using mathjax. The attached patch fixes this by html-encoding > latex fragments for mathjax HTML export. I imagine this change would be > generally useful and could be applied to master.

[O] html-encode in mathjax latex fragments

2014-06-29 Thread Eric Schulte
I noticed equations with "<"'s weren't displaying correctly in HTML export using mathjax. The attached patch fixes this by html-encoding latex fragments for mathjax HTML export. I imagine this change would be generally useful and could be applied to master. Best, Eric >From 8c4efca17f2a6fbc836c