I use the following Powershell script to convert the raw Markdown-Plain-Text in my clipboard into pastable things that can be used in an arbitrary browser. I use it most heavily for writing emails in Gmail, and for Google Docs.
paste.exe | pandoc -f markdown -t HTML | Set-Clipboard -AsHtml ; echo 'Conversion done.'
It has been working amazingly well, except for its conversion of the closing double quotes.
- When I type, I do not distinguish between the Opening and the Closing quotation marks;
- Either, it is
pandoc
that wanted to help, but screw up a bit, - Or, it is the
Set-Clipboard
Powershell command that needs a bit more of attention.
Experts, please advise what "magic flag" to put, so that I can avoid manually cleaning up the �?
markers all over the place.