emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Thibault Marin <thibault.marin@gmx.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: ox-md: Export links to equations for use with MathJax
Date: Mon, 12 Feb 2018 15:16:11 +0100	[thread overview]
Message-ID: <87o9kuuwd0.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87d11cdrta.fsf@dell-desktop.WORKGROUP> (Thibault Marin's message of "Sat, 10 Feb 2018 23:21:53 -0600")

Hello,

Thibault Marin <thibault.marin@gmx.com> 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

  reply	other threads:[~2018-02-12 14:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-11  5:21 ox-md: Export links to equations for use with MathJax Thibault Marin
2018-02-12 14:16 ` Nicolas Goaziou [this message]
2018-02-13  2:49   ` Thibault Marin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o9kuuwd0.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=thibault.marin@gmx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).