standin000
V2EX  ›  问与答

如何发布嵌入 markdown 文件群为一个 pdf

  •  
  •   standin000 · Jul 8, 2025 · 2172 views
    This topic created in 487 days ago, the information mentioned may be changed or developed.

    写东西的时候链接到其它文件用得好,但发布成 pdf 的时候想将文件链接变成文件内容的嵌入,比如说 a.md 第三行是b,想在第三行把 b.md 就地嵌入,第四行接着 b.md 的内容。如何 b.md 还包含 c.md ,也递归嵌入。

    请问有没有类似的软件可以做到,或者用脚本转换有没有坑?

    Supplement 1  ·  Jul 9, 2025
    我是已经有 markdown 文件,想做转换
    5 replies  •  2025-08-23 21:38:19 +08:00
    YsHaNg
    YsHaNg
    Jul 8, 2025 via iPhone
    1
    LaTeX
    lfqy
    lfqy
    Jul 9, 2025 via iPhone
    2
    Emacs orgmode
    standin000
    standin000
    OP
    Jul 9, 2025
    3
    @lfqy 我把 markdown 文件转换成 org 文件,就可以这样发布吗
    lfqy
    lfqy
    Jul 10, 2025 via iPhone
    4
    @standin000 差不多,搞一个 org 文件,在里面通过 include 的方式引用其他文件,在其中可以安排章节结构。
    standin000
    standin000
    OP
    Aug 23, 2025
    5
    最后写了个 python 脚本解决!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1485 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:14 · PVG 14:14 · LAX 22:14 · JFK 01:14
    ♥ Do have faith in what you're doing.