Make Markdown Line Breaks

Posted by @RosemaryOrchard, Last update about 1 year ago

Replaces a return with two spaces and a return.

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
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.