notslang / tidy-markdown

Beautify Markdown, fixing formatting mistakes and standardizing syntax
https://npmjs.com/package/tidy-markdown
GNU General Public License v3.0
75 stars 11 forks source link

support html input #27

Open notslang opened 8 years ago

notslang commented 8 years ago

For people wanting to use custom compilers or just need html-to-markdown conversion. Thanks to #26, this should be easy. Something like --input=html would make sense (and just have the default be --input=markdown), but maybe a plain flag would be better.

We could also do some autodetection by reading the first chunk of text from the CLI & looking for a doctype... idk how reliable that would be.