Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
Created April 8, 2014 17:45
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 mygeekdaddy/10161814 to your computer and use it in GitHub Desktop.
Save mygeekdaddy/10161814 to your computer and use it in GitHub Desktop.
Clipboard_to_MD
import markdown
import clipboard
input_file = clipboard.get()
s = input_file
md = markdown.Markdown()
html = md.convert(s)
print html
clipboard.set(html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment