I was looking for something similar, and since I could not find it, I wrote a small python script following the principles outlined by rd_nielsen.
You can call it like this:
python3 pandoc-merge.py --csv addresses.csv -o merged_letter.pdf letter_template.md
In your template, you can ...
You could eliminate the MS Word step by directly printing from the MD viewer or editor to a PDF printer such as LEADTOOLS ePrint. (Disclosure: I'm a LEADTOOLS employee).
This also gives you the ability to produce bookmarks similar to a table-of-contents, which I tested as follows:
Print from the preview pane of a markdown editor like this:
Then use the ...
After having another look at LogicalDoc, I think I may have found what I'm looking for - even though it's not as monolithic a solution as would have been "perfect".
LogicalDoc CE runs as a docker container and uses "about" 2GB of RAM (right now I'm investigating a slow memory leak, might need to restart it every 24h). You're able to ...
You should also take a look at Sphinx
it is phython-based, and runs on multiple platforms (Windows, Unix, MacOS, Docker)
Output formats: HTML (including Windows HTML Help), LaTeX (for printable PDF versions), ePub, Texinfo, manual pages, plain text
Extensive cross-references: semantic markup and automatic links for functions, classes, citations,...