top | item 39140765

(no title)

loxdalen | 2 years ago

I believe I have used pandoc to convert markdown to PDF. Maybe this is something you could try?

discuss

order

criddell|2 years ago

That’s probably what they were referring too when they described it as big, complicated, and fragile.

https://pandoc.org/chunkedhtml-demo/2.4-creating-a-pdf.html

Muehe|2 years ago

Well you need to install the appropriate texlive dependencies which can be somewhat complicated, but once that's done it's just writing inline Latex

    $$\like{this}$$
into your Markdown files and then doing

    pandoc -f markdown -t pdf -o output.pdf input.md
Haven't used this in a while and just tried it again, was just a matter of searching a few error messages, gleaning the missing texlive package names from the results, and installing them. Works like a charm now.

I also had this working for Markdown to HTML conversion back in the day when I needed it, but that requires the website using a JS library like Mathjax.