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.
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.
--pdf-engine=wkhtmltopdf
--pdf-engine=weasyprint
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.