在github上找了一下,大多数都是把markdown语法转换为html,没有找到把html转换为markdown语法的库。
顺便说一下,https://github.com/chjj/marked 写得真好。
顺便说一下,https://github.com/chjj/marked 写得真好。
|
fanTasyJun 12, 2015
1
|
|
djydeJun 12, 2015
2
|
|
djydeJun 12, 2015
3
|
|
gDDJun 12, 2015
4
这个快进 The PHP League 库了,Star 数也不少: https://github.com/nickcernis/html-to-markdown
|
|
kalasooJun 12, 2015
5
虽然有很多工具可以做到 html -> markdown,但是我还是要说 md / html 之间的关系更偏向于单向,通过 md 来更好地定义 typography。
|
|
lilydjwgJun 12, 2015
6
pandoc 各种转。
|
|
hr6rJun 12, 2015
7
to-markdown 亲测可行
|
|
8
|
|
latelxJun 27, 2015
9
pandoc
|