Action
Debmundo MD to TP for OF
Steps
-
script
draft.saveVersion(); let strIndent = ""; draft.content = draft.content.replaceAll("\n\n", "\n"); draft.content = draft.displayTitle + ":\n" + draft.processTemplate(`[[line|2..]]`); let astrOut = draft.lines.map(strLine => { if(strLine.startsWith("###")) { strIndent = "\t\t\t"; return "\t\t- "+ strLine.slice(3).trim(); } if(strLine.startsWith("##")) { strIndent = "\t\t"; return "\t- "+ strLine.slice(2).trim(); } if(strLine.trim().startsWith("- ")) return strIndent + strLine; return strLine; }); draft.content = astrOut.join("\n"); draft.update();
Options
-
After Success Default Notification Error Log Level Error
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.