推荐关注
› Meteor
› JSLint - a JavaScript code quality tool
› jsFiddle
› D3.js
› WebStorm
推荐书目
› JavaScript 权威指南第 5 版
› Closure: The Definitive Guide
guotie

有什么库,能把 html 转换为 markdown 的语法

  •  
  •   guotie · Jun 12, 2015 · 4810 views
    This topic created in 4161 days ago, the information mentioned may be changed or developed.
    在github上找了一下,大多数都是把markdown语法转换为html,没有找到把html转换为markdown语法的库。

    顺便说一下,https://github.com/chjj/marked 写得真好。
    9 replies  •  2015-06-27 18:26:08 +08:00
    djyde
    djyde
    Jun 12, 2015
    3
    gDD
    gDD
    Jun 12, 2015
    4
    这个快进 The PHP League 库了,Star 数也不少: https://github.com/nickcernis/html-to-markdown
    kalasoo
    kalasoo
    Jun 12, 2015
    5
    虽然有很多工具可以做到 html -> markdown,但是我还是要说 md / html 之间的关系更偏向于单向,通过 md 来更好地定义 typography。
    lilydjwg
    lilydjwg
    Jun 12, 2015
    6
    pandoc 各种转。
    hr6r
    hr6r
    Jun 12, 2015
    7
    to-markdown 亲测可行
    guotie
    guotie
    OP
    Jun 12, 2015
    8
    感谢各位,已决定使用to-markdown

    https://github.com/domchristie/to-markdown
    latelx
    latelx
    Jun 27, 2015
    9
    pandoc
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5684 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 03:09 · PVG 11:09 · LAX 19:09 · JFK 22:09
    ♥ Do have faith in what you're doing.