Action

Add a hashtag (one per line)

Posted by tinytamb, Last update about 4 years ago

Steps

  • script

    // See online documentation for examples
    // https://docs.getdrafts.com/docs/actions/scripting
    
    const ary = draft.content.split("\n").filter(word => word.length > 0).map(x => "#" + x);
    
    draft.content = ary.join("\n");
    draft.update();

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.