Drafts Action Directory

Make Markdown Line Breaks

Posted by @RosemaryOrchard, Last updated: 2018-07-04 12:50:26 UTC

Replaces a return with two spaces and a return.

Install

Steps

  • script

    // See online documentation for examples
    // http://getdrafts.com/scripting
    
    editor.setText(editor.getText().split("\n").join("  \n"));

Options

  • After Success Default
    Notification Info
    Log Level Info

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.