NodeJS script to convert MarkDown documents into PDF via HTML rendered using the finest Mac OS WebView. Unlike other converters, this outputs PDFs with selectable text and working hyperlinks.
npm install
node index.js example.md file2.md file3.md ...
This places html2pdf
in the root directory
cd MSHTML2PDF/scripts
./build.sh
html2pdf -i input.html -o output.pdf -d 210 297 -l 20 -t 20 -r 20 -b 20
Dimensions are millimeters