Editorial Workflows

Mark To Task

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 turns a Markdown Document into a Taskpaper document, keeping headers and lists intact (In their same position).

This workflow took me several hours to get right, but it is going to be very useful.

I might need to make a few tweaks, but this is all I need right now.

To do:

* Taskpaper to Html

Shared by: Tutorial Doctor

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Markdown to Taskpaper ?
Run the block if
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Convert ?
Run the block if
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Header Expression ?
Variable Name
expression
Value
#+\s.+
Prefix/Suffix ?
Variable Name
suffix
Value
:
Suffix Expression ?
Run the block if
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Document Text ?
Folded Text
  • Include
  • Replace with:
For Every Character... ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
.+
Match Group
0 (entire match)
Reverse
OFF
Replace Headers ?
Find
expression
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
%repeat:text suffix
Replace bullets ?
Find
[/*/+-]\s+
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
-
Replace Multi-hash ?
Find
#{1,3}
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
…End Repeat
…End If
…End If
Store Conversion ?
Variable Name
Task
Value
Input
Generate tasks ?
Run the block if
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Comment ?
Store Name Input ?
Variable Name
doc
Value
File Name.taskpaper
Create Document ?
File Name
%var:doc
In Dropbox
OFF
New Text
Task
If File Does Not Exist
  • Create
  • Stop Workflow
Open Document ?
File Name
%var:doc
In Dropbox
OFF
…End If
…End If