Action

Prepare Agenda for Notes

Posted by Mike_Burke, Last update 11 months ago

Makes selection into a markdown list and adds a sub-bullet to each item.

Steps

  • script

    // https://forums.getdrafts.com/t/create-markdown-sub-bullets/11229/6
    
    let myList = editor.getSelectedText().replace(/\n/g,"\n\t- \n- ");
    editor.setSelectedText("- "+myList+"\n\t- ");

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.