[Top][All Lists]

[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: Thu, 24 Feb 2022 19:50:11 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 18/02/2022 19:31, Juan Manuel Macías wrote:
Max Nikulin writes:

So formally this feature of pandoc is a bug (due to different kind of
parser). It is the reason why a corpus of tests should exist in a
format that can be easily imported from various programming languages.

Your conclusions seem logical to me. It may sound a bit surrealistic to
think that Pandoc is doing it wrong precisely for doing it "right", but...

Even pandoc is not perfect (at least not really consistent):

printf '%s' '- [[https://orgmode.org/][Lorem :: Ipsum]]' \
  | pandoc -f org -t html
<dt>[[<a href="https://orgmode.org/";>https://orgmode.org/</a>][Lorem</dt>

Default zero-width workaround does not work for e.g. for code snippets since it would break syntax of target programming language:

printf '%s' '- src_haskell{monoidBSFold :: FilePath -> IO Counts}' \
  | pandoc -f org -t html

Examples are inspired by the following message:

Cash Weaver. Bug with exporting list with link item containing "::" to markdown. Sat, 12 Feb 2022 12:12:45 -0800.

reply via email to

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