Editorial Workflows

Email markdown

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the 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: This workflow will send the file by email. The first line is used as subject.

Shared by: michael.jelden@uks.eu

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Document Text ?
Folded Text
  • Include
  • Replace with:
Set Variable ?
Variable Name
text
Value
Input
Get subject ?
Source Code
#coding: utf-8
import workflow

action_in = workflow.get_input()

title = action_in.split('\n')[0][0:].strip()

workflow.set_output(title)
Set Variable ?
Variable Name
title
Value
Input
Generate Text ?
Text
text
Delete First Line ?
Source Code
#coding: utf-8
import workflow

action_in = workflow.get_input()

l = action_in.split('\n')
l=l[1:]
q=''
for i in l:
	q+=i
	q+='\n'
	


workflow.set_output(q)
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
Fill in Email form ?
Recipient(s)
Subject
title
Message Body
Input
Is HTML
ON
Full Screen
OFF
Stop if Canceled
ON
Show HUD ?
HUD Text
Email sent!
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"