I’ve had great fun working with converting md files to PDF with pandoc. Only annoying element is that it needs a pdflatex engine to be installed also.

  • 56!@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    PDF generation can also be done via HTML using wkhtmltopdf or weasyprint. Wkhtmltopdf isn’t able to handle internal links correctly (those beginning with a # in html), so the table of contents doesn’t work. Weasyprint does this correctly, but it doesn’t handle numbered lists not starting at 1. My project requires both, as well as special unicode characters which latex can’t handle, so I’m looking for some additional tool to convert from HTML to PDF correctly.

      • 56!@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        re-reading my comment, it seems I forgot to point out that these are pdf engines for pandoc, and can be used with --pdf-engine=wkhtmltopdf or --pdf-engine=weasyprint once you have installed the correct dependencies.