Skip to content

Instantly share code, notes, and snippets.

@rmateu
Created January 24, 2012 21:11
Show Gist options
  • Save rmateu/1672729 to your computer and use it in GitHub Desktop.
Save rmateu/1672729 to your computer and use it in GitHub Desktop.
Quix Commands for Markdown Text Manipulation
@Text tools
@Markdown and text manipulation tools
ml javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20Link','['+s+']('+location+')')})();void(0) Copy selected text as Markdown link
mt javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20Title','['+document.title+']('+location+')')})();void(0) Copy title as Markdown link
mu javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20URL','('+location+')')})();void(0) URL as markdown link
mq javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20Copy','['+document.title+']('+location+')\n\n>'+s)})();void(0) Copy selected text as quote with title url in markdown
@rmateu
Copy link
Author

rmateu commented Jan 24, 2012

Copy and paste into your Quix file. More info on my blog.

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