function copy-to-markdown --description 'Text copied from browser will be converted to Markdown and put back on clipboard' xclip -o -selection clipboard -t text/html | pandoc -r html -w markdown | xclip -i -selection clipboard end