Daring Fireball: Markdown
CommonMark
MacDown Open Source Markdown Editor
Marked
GitHub Flavored Markdown
hongfeiyu
V2EX  ›  Markdown

markdown 转换为 pdf 的最佳方案是什么?

  •  
  •   hongfeiyu · Mar 21, 2016 · 8685 views
    This topic created in 3708 days ago, the information mentioned may be changed or developed.

    用马克飞象,代码块似乎很丑

    Supplement 1  ·  Mar 22, 2016
    其实我想问的只是转化出的 PDF 最好看的方案是什么?
    _(:з」∠)_
    25 replies    2025-03-07 10:10:38 +08:00
    holong2000
        1
    holong2000  
       Mar 22, 2016 via iPhone
    放到 ulysses 或 marked2 里导出
    int64ago
        2
    int64ago  
       Mar 22, 2016 via Android
    作业部落 导出
    dvorak4tzx
        3
    dvorak4tzx  
       Mar 22, 2016
    用 pandoc 先转 docx ,然后用 docx 转 pdf 。当然 md -> tex -> pdf 也可以,但那个效果不一定好。

    - [Pandoc 转成 Word]( http://tangzx.qiniudn.com/post-0033-md2docx.html)
    - [district10/hacking-travis: 原谅我 hack 用得随意……]( https://github.com/district10/hacking-travis)

    也就是说,只要你把 md 文件 push 到 GitHub ,就可以用 travis 来生成 pdf 。我正计划把自己的博客每页都生成一份 docx ,一份 pdf 。

    Hope this help 。
    vanxining
        4
    vanxining  
       Mar 22, 2016
    Pandoc
    mritd
        5
    mritd  
       Mar 22, 2016
    我表示直接用 web 版的 作业部落 https://zybuluo.com ,会员可以直接下载 PDF 渲染版本。。。
    jedicxl
        6
    jedicxl  
       Mar 22, 2016 via iPhone
    以前是生成 HTML 然后自己另外加 CSS ,再虚拟打印成 PDF
    gamexg
        7
    gamexg  
       Mar 22, 2016
    gitbook ,如果包含中文需要自己指定字体。
    amustart
        8
    amustart  
       Mar 22, 2016
    表示 使用 Atom 写 Markdown , 安装插件之后 快捷键直接生成 PDF
    SpicyCat
        9
    SpicyCat  
       Mar 22, 2016
    chrome 虚拟打印
    Wangxf
        10
    Wangxf  
       Mar 22, 2016
    typora 编辑器转 pdf 非常方便
    hongfeiyu
        11
    hongfeiyu  
    OP
       Mar 22, 2016
    @int64ago 这个是付费的我记得
    hongfeiyu
        12
    hongfeiyu  
    OP
       Mar 22, 2016
    @amustart 请问插件名叫什么
    hongfeiyu
        13
    hongfeiyu  
    OP
       Mar 22, 2016
    @holong2000
    @dvorak4tzx
    @Wangxf 我记下了谢谢

    @vanxining
    @mritd
    @jedicxl
    @gamexg
    谢谢
    honoka
        14
    honoka  
       Mar 22, 2016
    mac 的话 Macdown 自带导出 PDF 的功能, win 的话 MarkdownPad 也有这功能,不过好像得付费版才能用
    kaixuan1901
        15
    kaixuan1901  
       Mar 22, 2016
    Mou -> Chrome Plugin: Markdown Preview Plus -> Print
    amustart
        16
    amustart  
       Mar 22, 2016
    @hongfeiyu markdown-pdf 用来生成 PDF/PNG 的 ,pdf-view 预览 Markdown
    lc4t
        17
    lc4t  
       Mar 22, 2016 via iPhone
    转网页 然后 google print export
    mgcnrx11
        18
    mgcnrx11  
       Mar 22, 2016
    搭车问有什么方案能够把 markdown 的代码块转 pdf 的时候能自动换行,很多 app 都不能好好处理 pdf 下代码的换行问题...
    mintist
        19
    mintist  
       Mar 22, 2016
    Markdown 格式书写, Word , PDF , HTML , PNG 格式输出

    主要工具是 pandoc 和 wkhtmltopdf ,外加自定义的 CSS

    http://mintisan.github.io/notes/markdown-word-pdf-html-png.html
    MemoryCorner
        20
    MemoryCorner  
       Mar 22, 2016
    马克飞象
    XuQK
        21
    XuQK  
       Mar 23, 2016
    wiznote 导出为 PDF ,挺好的
    shithead
        22
    shithead  
       Mar 23, 2016
    madoko
    jaywcjlove
        23
    jaywcjlove  
       Mar 30, 2016
    导出 PDF 不是浏览器自带的? `⌘ + p` 打印模式可以导出 PDF
    xitiecheng
        24
    xitiecheng  
       Dec 22, 2017
    @mgcnrx11 同问!!!
    yinxs2003
        25
    yinxs2003  
       Mar 7, 2025
    typora 转 word ,在从 word 转 pdf
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3134 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 88ms · UTC 13:01 · PVG 21:01 · LAX 06:01 · JFK 09:01
    ♥ Do have faith in what you're doing.