Pandoc: long plates in Markdown-> PDFs don't get linewrap

I use Pandoc to create markdown-> DOCX documents with lots of tables, but it’s better to control the layout.

Now I am trying to output markdown-> PDF, but ran into problems with the output of the table.

In DOCX, long lines of text are simply broken into multiple lines. This does not happen in the PDF; a line is always a single line, which does not wrap on the right side, but continues outside the page. The normal text of the paragraph is right-aligned, so the problem is probably not the page size.

Markdown example:

This is text that flows according to the page limits. This is text that flows according to the page limits. This is text that flows according to the page limits. This is text that flows according to the page limits. This is text that flows according to the page limits. | Version | Date | Comment | |--------:|-------|---------| | 1.0.0 | 07.04.2014 | This is a table row that does not flow with the page limits. This is a table row that does not flow with the page limits. | | 2.0.0 | 07.04.2014 | This is a table row that does not flow with the page limits. This is a table row that does not flow with the page limits. | This is text that flows according to the page limits. This is text that flows according to the page limits. This is text that flows according to the page limits. This is text that flows according to the page limits. This is text that flows according to the page limits. 

PDF result Resulting PDF

How to enable string wrapping in PDF tables?

+8
pdf-generation latex pandoc
source share
1 answer

Pipe tables are not transferred to LaTeX / PDF output. Use multiline or grid tables as described in the pandoc User Guide . It will also give you the ability to control the relative width of the columns.

+9
source share

All Articles