Drafts Action Directory

Make Markdown Line Breaks

Posted by @RosemaryOrchard, Last updated: 2018-05-27 15:44:50 UTC

Replaces a return with two spaces and a return.



  • script

    // See online documentation for examples
    // http://getdrafts.com/scripting
    editor.setText(editor.getText().split("\n").join("  \n"));
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.