Skip to content

Instantly share code, notes, and snippets.

@nathanalderson
Created May 5, 2018 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanalderson/8f069b0780f0fddc302119315d994a71 to your computer and use it in GitHub Desktop.
Save nathanalderson/8f069b0780f0fddc302119315d994a71 to your computer and use it in GitHub Desktop.
Tansform clipboard contents from markdown to HTML
#!/usr/bin/env bash
xclip -selection clipboard -o | pandoc --from markdown --to html | xclip -selection clipboard -target text/html
@nathanalderson
Copy link
Author

Especially useful in combination with something like vim-anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment