Action

Make Markdown Line Breaks

Posted by @RosemaryOrchard, Last update over 6 years 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
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.