5 ms·
I believe I have used pandoc to convert markdown to PDF. Maybe this is something you could try?
by loxdalen 3y ago
I believe I have used pandoc to convert markdown to PDF. Maybe this is something you could try?
- criddell 3y agoThat’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 https://pandoc.org/chunkedhtml-demo/2.4-creating-a-pdf.html
- Muehe 3y agoWell 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.