Convert HTML back to Markdown for editing in wmd

前端 未结 5 2150
抹茶落季
抹茶落季 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:32

    If you want to convert HTML to Markdown in batch, I can recommend Aaron Swartz’s html2text.py Python script with which you can just:

    cat my.html | python html2text.py # outputs markdown
    

    Edit 05/11/12: Nowadays I use Pandoc which is like a swiss-knife for text documents. Can convert html<>textile<>markdown<>epub<>pdf<>latex, etc.

提交回复
热议问题