This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%* | |
//get selection | |
noteContent = tp.file.selection(); | |
//get array of lines | |
lines = noteContent.split('\n') | |
//make a new string with > prepended to each line | |
let newContent = ""; | |
lines.forEach(l => { | |
newContent += '> ' + l + "\n"; | |
}) |