Action

Copy as HTML

Posted by agiletortoise, Last update 5 days ago

Pass content of draft through Markdown parser and place the resulting HTML in the clipboard as text/html content type. Useful in cases where you wish to paste into a target app or web service that understand HTML content.

Steps

  • script

    let html = draft.processTemplate(`%%[[draft]]%%`)
    
    app.setClipboard({
    	"html": html,
    	"string": draft.content
    })

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.