Action

Sort Markdown heading 1

Posted by @Quitahiede, Last update almost 3 years ago

Sort Markdown level 1 headings without sorting paragraphs.

Steps

  • script

    // Sort at specified delimiter
    
    let sorts = draft.content.split("#").sort().join("#")
    let d = Draft.create();
    d.content = sorts;
    d.update();

Options

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