I frequently need to convert Google Docs to Markdown for work. Instead of installing a slightly-sketchy extension or downloading at .odt then running pandoc to convert to .md, I frequently copy/paste right into a Discourse discussion and viola.
Every single time it’s the smoothest Markdown transition. The same happens for tables when I copy table-structured information and it automatically builds a Markdown table around it.
How does it do that?
I started poking around the source code but the JS libraries are a bit out of my skillset. I ask because if it’s something I could use elsewhere in open source (first up: Joplin).
Any tips or advice on walking the code is appreciated.