Pandoc: Markdown embedded HTML code style is invalid in PDF

Created on 24 Aug 2017  路  3Comments  路  Source: jgm/pandoc

The HTML code written in the markdown file is converted to a PDF file. Why did the style fail

tese.md

<center>title</center>
<p style="margin-top:100px;color:orange;">https://github.com/jgm/pandoc</p>

output.pdf

image

All 3 comments

Did you use -t html5 option?

Paragraph styles and colors are not supported.
Pandoc tries to capture structural elements of the document, but generally does not translate all the stylistic information.

I've found a solution锛宼hat I need to install wkhtmltopdf and use option -t html5锛乼hank you all

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elliottslaughter picture elliottslaughter  路  4Comments

ocehugo picture ocehugo  路  3Comments

transientsolutions picture transientsolutions  路  3Comments

eins78 picture eins78  路  5Comments

cnblogs-dudu picture cnblogs-dudu  路  5Comments