> 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).
OK.

> 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).

Thanks.  The following seems to work for my need:

,----
| (defun org-ipynb-link (link desc info)
|   (let* ((type (org-element-property :type link))
|            (destination (if (string= type "fuzzy")
|                             (org-export-resolve-fuzzy-link link info))))
|       (if (and destination
|                (eq 'latex-environment (org-element-type destination))
|                (eq 'math (org-latex--environment-type destination)))
|           (org-html-link link desc info)
|         (org-md-link link desc info))))
`----

Thanks for the help.

thibault

Reply via email to