Sample Header Ad - 728x90

Copy markdown input to the clipboard as rich text

18 votes
2 answers
5249 views
I'm about to get involved in some collaborative prose writing with a friend of mine via email. As a regular person, he will of course be using MS Word document formats; as a massive nerd, I prefer to use markdown when writing on a computer. What I need is the exact opposite of [this question about converting rich text copied from a webpage to markdown](https://unix.stackexchange.com/q/78395/34494) . My naive worst-case workflow would be: 1. Write up the document in markdown 2. Use pandoc -S file.mkd -o temp.html 3. Open up temp.html in a web browser 4. Copy & paste from the page to the open document in libreoffice I am certain that this can be optimised. (Google Docs is not an option in this case). Even though I've answered the main question, I still feel that this could be optimised further. If there is any way to concatenate .doc files (which I will be receiving and which pandoc can write to), perhaps with the libreoffice command-line interface, then I suppose it would be possible to construct an overly-complicated one-liner and avoid having to leave the terminal at all. If anyone finds a way to do that, I will happily accept that answer over my own.
Asked by evilsoup (7057 rep)
Jul 30, 2013, 06:10 PM
Last activity: May 4, 2020, 09:34 PM