To copy to/from clipboard, use getclip | … | putclip
(see Cygwin page).
Puts in the clipboard DokuWiki formatted text from the clipboard converted to markdown:
xclip -o -selection clipboard | pandoc -f dokuwiki -t gfm | xclip -selection cipboard