From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ox-md: Export links to equations for use with MathJax Date: Mon, 12 Feb 2018 15:16:11 +0100 Message-ID: <87o9kuuwd0.fsf@nicolasgoaziou.fr> References: <87d11cdrta.fsf@dell-desktop.WORKGROUP> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elEu0-0008Pv-SW for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 09:16:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elEty-00010f-6U for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 09:16:16 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:48518) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1elEty-0000z6-0p for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 09:16:14 -0500 In-Reply-To: <87d11cdrta.fsf@dell-desktop.WORKGROUP> (Thibault Marin's message of "Sat, 10 Feb 2018 23:21:53 -0600") 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" To: Thibault Marin Cc: emacs-org list Hello, Thibault Marin writes: > The attached patch is my first attempt at this. It is almost identical > to the ox-html version. I have added an option to select which mode to > use (markdown or MathJax). Thank you. > Could this patch be considered for a merge? Please let know if there > are any suggestions or comments. Markdown has no direct business with Mathjax, so introducing Mathjax components in "ox-md.el" sounds wrong to me. "ox-md.el" doesn't even have any math-related function (it lets "ox-html.el" take care of LaTeX fragments and environments). Since it is a specific requirement, you may want to define your own Markdown back-end in this case (e.g., replacing `org-md-link' with `org-html-link' in some cases). Another option would be to introduce a boolean variable like "org-md-internal-links-as-html", but I'm not sure it would be generally useful. WDYT? Regards, -- Nicolas Goaziou