Drafts Action Directory

Share as Markdown File

Posted by agiletortoise, Last update 5 months ago

Send draft to system share sheet as a “.md” Markdown file, instead of plain text. This is useful, for example, to send as an attachment if you select the “Mail” action.

Install

Steps

  • script

    // Share draft content as Markdown file
    // Using first line as title
    
    let fileName = draft.processTemplate("[[safe_title]].md");
    
    Share.shareAsFile(fileName, draft.content);

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.