From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: bug: html export, latex fragments and emphasize Date: Fri, 12 Nov 2010 02:28:34 +0100 Message-ID: <87y68z2uv1.wl%n.goaziou@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=46292 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGiRQ-00026z-3e for emacs-orgmode@gnu.org; Thu, 11 Nov 2010 20:28:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGiRP-0002eZ-5p for emacs-orgmode@gnu.org; Thu, 11 Nov 2010 20:28:36 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:47331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGiRO-0002eM-WD for emacs-orgmode@gnu.org; Thu, 11 Nov 2010 20:28:35 -0500 Received: by wyf23 with SMTP id 23so2928694wyf.0 for ; Thu, 11 Nov 2010 17:28:34 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode List Hello, Here is a problem when a latex fragment is split across two lines and an emphasize follows. The text won't be italicized upon exporting to HTML. ===== * latex-fragments bug Imagine we have a formula starting here $e^{i\pi} + 1 = 0$. Now we have a problem with /emphasize/. ===== This is because the line starts with a char with 'org-protected property and, thus, get caught by the "Protected HTML" (org-html.el l. 1216) part of `org-export-as-html'. In others words, the line is inserted as-is in the output buffer, before getting any transformation. I'm not sure how it should be done (I don't get yet the usefulness of this "Protected HTML" part), but that piece of code may be moved after the `org-html-expand' call, as long as every sub-function in `org-html-expand' has a check to prevent modifying protected stuff (this not yet the case for `org-export-with-emphasize' and `org-html-protect' while others seem ok). But even in this case, every function getting called after that would be ignored. So, for example, links would not be inserted. Couldn't the "Protected HTML" part be removed altogether? Regards, -- Nicolas