Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting multiple Markdown files with links to PDF

Tags:

markdown

pdf

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?

like image 565
Luca Spiller Avatar asked Feb 15 '13 16:02

Luca Spiller


People also ask

How do I batch convert multiple files to PDF?

Convert multiple files into a single PDF.Open your favorite web browser and navigate to Acrobat. Select Combine Files. Drag and drop your files into the conversion frame. You can also locate your files manually.

Can you convert PDF Markdown?

Save PDF as Markdown in PythonRead PDF file from the local drive, then simply save it as Markdown, specifying the required file format by MD extension. For both PDF reading and MD writing you can use fully qualified filenames. The output MD content and formatting will be identical to the original PDF document.

How do I save a GitHub Markdown as a PDF?

Open the command palette (F1), type export and select markdown-pdf: Export (pdf)


1 Answers

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.

like image 128
Sonson123 Avatar answered Oct 09 '22 21:10

Sonson123