Editorial Workflows

Email

public workflow

Install Workflow

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Sends the selected document via email, optionally converting it from Markdown to HTML.

Shared by: jsneller

Comments: Comment Feed (RSS)

Clare Macrae — 17 Jun 2014
This works really well, and the HTML styling looks great in emails on the iPad.

Thanks!

+ Add Comment

Workflow Preview
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Set Variable ?
Variable Name
Text
Value
Input
Count Words ?
What to Count:
  • Words
  • Sentences
  • Lines
  • Characters
Show Alert (Select Format) ?
Title
Send Email as...
Message
(Input words)
Button 1
HTML (Markdown)
Output Value
html
Button 2
Plain Text
Output Value
text
Button 3
(don't show)
Output Value
Show Cancel Button
ON
Set Variable ?
Variable Name
Format
Value
Input
If Format is HTML... ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
html
Generate Text ?
Text
Text
Convert Markdown ?
Markdown Extras: Footnotes
ON
…Auto-Links
ON
…Strikethrough (~~x~~)
ON
…Superscript (^x)
ON
…Tables
ON
…Smart Quotes etc.
ON
…Strip Metadata Headers
OFF
Show HTML ?
HTML
<!DOCTYPE html> <html> <head><meta charset="utf-8"/> <!-- <link rel="stylesheet" type="text/css" href="css/foo.css"/> --> <style type="text/css"> <!-- html, body { background: #FFF; margin: 0; border: 0; height: 100%; width: 100%; text-align: left; color: #333; font: normal 1em "Verdana", Helvetica neue, Georgia, "Times New Roman", Times, serif; } body { margin: 0 3%; width: 94%; } code, pre { color: #666; } p { line-height: 1.2em; margin-top: .8em; } p.first { margin-top: 0; } img { border: 0; margin: 0; padding: 0; } h1, h2, h3, h4, h5, h6 { margin: 0 -3%; padding: .2em 0 .2em 3%; font-weight: bold; } h1 { color: #333; font-size: 1.6em; } h2 { background: #EEE; color: #999; font-size: 1.4em; } h3 { background: #111; color: #DDD; font-size: 1.2em; } a { text-decoration: none; outline: none; border: 0; color: #369; } a:link, a:visited { text-decoration: none; } a:hover, a:active { text-decoration: underline; color: #FFCC00 } p a { font-weight: normal; } p { clear: both; font-size: 100% } ul { list-style: square } ul ul { list-style: circle } li { font-size: 1.1em; } li li { font-size: 1em; } table { border-width: 1px; border-color: #666666; border-collapse: collapse; margin-top: 1em; margin-bottom: 1em; } table th { border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #dedede; } table td { border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #ffffff; } --> </style> </head> <body> Input </body> </html>
Title
PSAV CSS
Base URL
None
Compose Email ?
Recipient(s)
Subject
File Name
Message Body
Input
Is HTML
ON
Full Screen
OFF
Stop if Canceled
ON
…End If
If Format is Text... ?
Run the block if
Format
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
text
Compose Email ?
Recipient(s)
Subject
File Name
Message Body
Text
Is HTML
OFF
Full Screen
OFF
Stop if Canceled
ON
…End If