mixmark-io / turndown

🛏 An HTML to Markdown converter written in JavaScript
https://mixmark-io.github.io/turndown
MIT License
8.62k stars 870 forks source link

Online demo: use the 'text/html' entry when available in the clipboard #399

Closed danburzo closed 1 year ago

danburzo commented 3 years ago

I'm using Turndown's online demo a lot these days to turn HTML into Markdown, thank you so much for the library and associated service!

One thing I find myself needing to do a lot is to go to Clipboard inspector, paste the content there, then copy the text/html clipboard entry as plain text, before pasting it in the Turndown demo.

It would be great if the tool picked up on the text/html clipboard entry directly. In this PR I've made it do just that, let me know what you think!