Convert HTML back to Markdown for editing in wmd

前端 未结 5 2147
抹茶落季
抹茶落季 2020-12-05 15:04

I am curious to do what happens when you edit a post on this site.

I am using wmd for my markdown editor, of course when I goto edit, I get the HTML it generated not

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 15:22

    I have just know Markdownify (formerly html2text.php) that "writes texts in Markdown and save them in HTML. You won’t need a copy of the original Markdown input, since Markdownify can convert the saved HTML back to Markdown. And because page impressions are far more often than write actions, this gives you a simple way to increase your page’s performance. Another benefit for a CMS or similar software is that now only one format of text is saved — HTML. The user can now choose wether to write texts in plain HTML or use a full fledged Wysiwyg editor. And of course he can write in Markdown!"

提交回复
热议问题