Skip to content

Instantly share code, notes, and snippets.

@florido
Forked from rmateu/quix-markdown-commands
Created September 10, 2018 10:56
Show Gist options
  • Select an option

  • Save florido/244bac087c3ecad7113bb27a0e4ed930 to your computer and use it in GitHub Desktop.

Select an option

Save florido/244bac087c3ecad7113bb27a0e4ed930 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment