[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export
From: |
Timothy |
Subject: |
Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export |
Date: |
Tue, 04 May 2021 11:35:01 +0800 |
User-agent: |
mu4e 1.4.15; emacs 28.0.50 |
Hi Nicolas,
So, I've now fixed the handling of already-$-delaminated fragments, and
removed the $$ from around environments.
Sorry to complicate things, but, looking at what the HTML fallback
actually is, I've had some further thoughts. The HTML backend will
either leave the content as-is, run `org-latex-to-html-convert-command',
or run something from `org-preview-latex-process-alist' and include an
<img>.
Should one want to convert LaTeX images say to an SVG for HTML export, I
do not think one would want this behaviour to also apply to LaTeX being
exported to markdown.
As such I see two 'sensible' paths forward: (1) just include LaTeX
verbatim when :with-latex is non-nil, or (2) introduce
`org-markdown-with-latex' which can be set to t/'verbatim or 'html.
In the attached patch, I've taken the first approach. Let me know if
you'd like to take the second approach, or just inherit the HTML
behaviour for LaTeX after all.
--
Timothy
0001-ox-md-Use-TeX-style-math-wrapping.patch
Description: Text Data
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export, Timothy, 2021/05/02
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export, Timothy, 2021/05/02
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export, Nicolas Goaziou, 2021/05/03
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export, Timothy, 2021/05/03
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export, Nicolas Goaziou, 2021/05/03
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export,
Timothy <=
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export, Nicolas Goaziou, 2021/05/04
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export, Timothy, 2021/05/04
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export, Nicolas Goaziou, 2021/05/06
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export, Timothy, 2021/05/09
- Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export, Nicolas Goaziou, 2021/05/10