Skip to content

Instantly share code, notes, and snippets.

@rmateu
Forked from JoelBesada/README.md
Last active August 29, 2015 14:02
Show Gist options
  • Save rmateu/5c201b3ba268d5dc2d2f to your computer and use it in GitHub Desktop.
Save rmateu/5c201b3ba268d5dc2d2f to your computer and use it in GitHub Desktop.
/* NOTE: Comments need to be in multiline format like this, instead of "// Comment" */
(function (s) {
try {
s = document.selection.createRange().text
} catch (_) {
s = document.getSelection()
}
prompt('Markdown Title', '[' + document.title + '](' + location + ')')
})()
{
"name": "Copy Markdown Title",
"description": "Open prompt with title in Mardown link format.",
"icon": "https://dl.dropboxusercontent.com/u/842/backtick/Mdown_60.png",
"link": "http://daringfireball.net/projects/markdown/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment