Converting multiple Markdown files with links to P

2019-04-19 07:31发布

问题:

I've written a load of technical documentation in Markdown. I chose to use this for versioning and so we can view in on GitHub.

We now need to share this with external users (who aren't as comfortable with Markdown), so I would like to convert it to PDF.

Gimli seems to be the best tool I have found for the conversion (it uses the same stylesheet as GitHub so it looks the same), however it doesn't convert the links as well. Is there anything that'll also do this?

回答1:

I don't know with which type of links you have problems (inline links, reference links, HTML links, image links, automatic links...), but you can try to use Pandoc:

pandoc *.md -o result.pdf

This will convert all files with the *.md file extension to a single pdf.



回答2:

NO!!! You really don't have to do this!!! Simply " cat *.md > allpages.md " (you may want to organize the order manually or setup each file in a proper name to let cat work) then open the allpages.md then choose print / export in any markdown editor!!!!

You don't have to install ANYTHING!!!!



标签: pdf markdown