-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
Explain the problem.
Include the exact command line you used and all inputs necessary to reproduce the issue. Please create as minimal an example as possible, to help the maintainers isolate the problem. Explain the output you received and how it differs from what you expected.
I tried to convert an HTML blog post to markdown as I usually do for Lemmy posts but this time the table turned into [TABLE]
.
I narrowed it down to a rather minimal reproducer:
The cause is the <h3>
tag. If you remove it, it works as expected.
markdown-raw_html
also converts it fine. markdown_strict-raw_html
does not.
That shouldn't happen but what I found even more confusing is that pandoc didn't even print a warning while discarding a large amount of textual content. Loss of layout information is expected when converting between different formats of course but the content should never change or be removed without warning.
Pandoc version?
What version of pandoc are you using, on what OS? (If it's not the latest release, please try with the latest release before reporting the issue. Note that many linux distributions have old versions of pandoc in their repositories.)
It's pandoc 3.1.11.1
via Nix (via stackage LTS) but reproduces on https://pandoc.org/try/ (3.5) if you hack in -raw_html
.