How to convert Markdown + CSS -> PDF?

后端 未结 4 1445
南笙
南笙 2020-12-14 18:05

I\'m trying to convert a Markdown file into a PDF. I\'m looking for only two things:

  • A way to easily change the style of the pdf (for example with a CSS file)<
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 18:24

    To a certain extent, I'd suggest just learning the basic latex formatting you need - it removes a layer of interpretation by the renderer.

    However, pandoc does support html input, so in theory, you could export markdown->html(with custom css), then call pandoc again to convert to html. I don't know if (or how much) of the formatting would be saved - css can be really complicated to parse.

提交回复
热议问题