Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
Created April 8, 2014 17:45
Show Gist options
  • 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