docs icon indicating copy to clipboard operation
docs copied to clipboard

Tables in PDF are not rendered correctly

Open dveeden opened this issue 2 years ago • 3 comments

Error Report

  1. What is the URL/path of the document related to this issue?

Example:

  • Online/HTML: https://docs.pingcap.com/tidb/stable/release-7.5.0

image

  • PDF: https://download.pingcap.org/tidb-stable-en-manual.pdf

image

  1. How would you like to improve it?

dveeden avatar Jan 05 '24 08:01 dveeden

With a newer PanDoc / XeLaTeX versions things are better, but not good enough yet.

$ rpm -qf /usr/bin/xelatex /usr/bin/pandoc
texlive-xetex-svn66203-77.fc39.x86_64
pandoc-3.1.3-25.fc39.x86_64

See also #5634

image

dveeden avatar Jan 05 '24 13:01 dveeden

@dveeden This is due to pandoc won't parse <table>...</table> in a markdown file. Please refer to: https://tex.stackexchange.com/questions/631243/how-to-render-html-tables-in-markdown-using-pandoc Newer version of pandoc supports custom lua filters, may be a remedy.

curiousRay avatar Jan 09 '24 16:01 curiousRay

Meanwhile, I found <rowspan> in many markdown files, for example: https://github.com/pingcap/docs/blob/0a0a21cf07e7b4f43b884e99f3665a3746dcb5f3/dm/dm-ddl-compatible.md?plain=1#L28

<rowspan> and <colspan> are not supported by markdown generator, nor originally does pandoc. But it is said that pandoc's lua filters support this.

curiousRay avatar Jan 09 '24 17:01 curiousRay