✪ 1.2.3... MD
Markdown numbered list

Script key: Markdown numbered list

Posted by @fabiantheblind

Install

Details

Label ✪ 1.2.3... MD
Voice Over Markdown numbered list
Script
// Script keys run short Javascripts
// For documentation and examples, visit:
// http://help.agiletortoise.// Script steps run short Javascripts
// For documentation and examples, visit:
// http://help.agiletortoise.com


var sel = getSelectedText();
if(sel.length>0){

  var arr = sel.split('\n');

  for(var i = 0;i< arr.length;i++){
    arr[i] = String(i+1) + '. ' + arr[i];

  }
 sel = arr.join('\n');
 setSelectedText(sel);

 
}

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus