Action
MD to Rich Text(with implicit line breaks)
Transform Markdown to Rich Text, with implicit line breaks and place result on the clipboard
Steps
-
script
let mmd = MultiMarkdown.create(); let strHTML = mmd.render(draft.content.replaceAll(/(\n)/gm, " $1")); let strTemplate = `<html><body> [[content]] </body></html>`; if (!app.htmlToClipboard(strTemplate.replace("[[content]]", strHTML))) context.fail("Error could not generate HTML.");
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.