Closed deenine closed 2 years ago
This is expected behaviour. Raw HTML in markdown input is passed on as is to HTML output and omitted on export to other formats.
@mb21 Is it desirable to omit on export to other formats?
It is very common to embed HTML tables in markdown, and Pandoc is clearly able to parse HTML tables as evidenced by the html-docx conversion demonstrated above.
For a work-around, see https://github.com/jgm/pandoc/issues/6317#issuecomment-977150938.
Has that been fixed/added? I still have the same problem. I am using this pandoc version: pandoc 3.1.1 Features: +server +lua Scripting engine: Lua 5.4 User data directory: /root/.local/share/pandoc Copyright (C) 2006-2023 John MacFarlane. Web: https://pandoc.org This is free software; see the source for copying conditions. There is no warranty, not even for merchantability or fitness for a particular purpose.
This will enormously facilitate to use complex tables in markdown documents that will be converted to docx.
See comment above: https://github.com/jgm/pandoc/issues/7736#issuecomment-987875443
Explain the problem. HTML tables embedded in markdown are not rendered into docx output. For example, markdown with two tables, one native MD pipe and one embedded html:
This renders correctly into html, however when output into docx using
pandoc tab_test.md -o tab_test.docx
, the HTML table is not parsed and results in:It appears that the markdown parser is not triggering html parsing of the table, as the output element works correctly if I convert md to html to docx:
Pandoc version? Pandoc 2.16.2 installed with brew on OSX 11.6 Big Sur on 2019 MBP Intel i7.