转换带有链接的PDF的多个Markdown文件 [英] Converting multiple Markdown files with links to PDF

查看:112
本文介绍了转换带有链接的PDF的多个Markdown文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Markdown中编写了大量技术文档.我选择将其用于版本控制,因此我们可以在GitHub上查看.

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.

我们现在需要与外部用户共享(他们对Markdown不太满意),所以我想将其转换为PDF.

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 似乎是我发现的最佳转换工具(它使用与GitHub,因此外观相同),但是它也不会转换链接.有什么可以做的吗?

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?

推荐答案

我不知道哪种链接类型存在问题(内联链接,参考链接,HTML链接,图像链接,自动链接...),但您可以尝试使用 Pandoc :

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

这会将所有扩展名为*.md的文件转换为一个pdf.

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

这篇关于转换带有链接的PDF的多个Markdown文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆