Converting multiple Markdown files with links to PDF

前端 未结 3 789
难免孤独
难免孤独 2021-02-07 02:12

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

相关标签:
3条回答
  • 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.

    0 讨论(0)
  • 2021-02-07 02:51

    I use named anchor tags in my markdown document. And I make links to these names. For example,

    <a name="#1-overview"></a>
    ##1. Overview
    
    ......
    
    Reference: [1. Overview](#1-overview)
    

    Then I use Typora to open the markdown document and export it to PDF. The resulting PDF preserves these internal links properly.

    0 讨论(0)
  • 2021-02-07 03:02

    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!!!!

    0 讨论(0)
提交回复
热议问题