emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pandoc and nested emhases


From: Max Nikulin
Subject: Re: Pandoc and nested emhases
Date: Wed, 11 Oct 2023 23:11:26 +0700
User-agent: Mozilla Thunderbird

It was long time ago...

On 18/02/2022 07:47, Juan Manuel Macías wrote:
Otherwise, if you export to LaTeX with pandoc (v. 2.14.2), the result is
(to my surprise) correct:

#+begin_src sh :results latex
str="/lorem /ipsum/ dolor/"
pandoc -f org -t latex <<< $str
#+end_src

#+RESULTS:
#+begin_export latex
\emph{lorem \emph{ipsum} dolor}
#+end_export

Nesting of the same emphasis style may be achieved with Org parser as well:

(org-export-string-as
 "/lorem /ipsum// /dolor/"
 'latex t)
"\\emph{lorem \\emph{ipsum}} \\emph{dolor}
"

Namely closing markers should be combined. See the recent thread
Tom Alexander to emacs-orgmode. Inconsistent text markup handling when double-nesting markers. Mon, 09 Oct 2023 19:02:18 -0400.
dad964f5-c764-4dd5-9829-ca38e3fbeb0d@app.fastmail.com">https://list.orgmode.org/dad964f5-c764-4dd5-9829-ca38e3fbeb0d@app.fastmail.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]