Rapporter / pander

An R Pandoc Writer: Convert arbitrary R objects into markdown
http://rapporter.github.io/pander/
Open Software License 3.0
294 stars 66 forks source link

want table with image and line.break at the same time #358

Closed ghost closed 2 years ago

ghost commented 2 years ago

I was generating a table with Rmarkdown driven by pander.

It support image inside table which is pretty good.

Now I want to have text in one cell to be splitted with line breaks.

I have tried to add panderOptions('keep.line.breaks', TRUE) but seems not work.

Can someone let me know if it support and how please?

daroczig commented 2 years ago

Try using hard line breaks (e.g. \\) inside grid tables. Search for "hard line break" at https://pandoc.org/MANUAL.html

ghost commented 2 years ago

Try using hard line breaks (e.g. \\) inside grid tables. Search for "hard line break" at https://pandoc.org/MANUAL.html

It works~