Editorial Workflows

Create ToC

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: Creates a table of contents to link to sections of an article using header IDs. The workflow extracts header names (between H2 and H6) and builds a list that links to sections using the Article URL variable at the beginning of the workflow.

Example:

http://www.macstories.net/roundups/os-x-mavericks-tips-tricks-and-details/#Section1

http://www.macstories.net/roundups/os-x-mavericks-tips-tricks-and-details/#Section2

Shared by: viticci

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Article URL ?
Variable Name
URL
Value
http://www.macstories.net/roundups/os-x-mavericks-tips-tricks-and-details/
Document Text ?
Folded Text
  • Include
  • Replace with:
Repeat… ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
^#{2,6}\s([^#].+?)$
Match Group
1
Reverse
OFF
Set Variable ?
Variable Name
headers
Value
Input
Find / Replace ?
Find
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Find / Replace ?
Find
,
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Find / Replace ?
Find
:
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Change Case ?
  • UPPER CASE
  • lower case
  • Title Case
Set Variable ?
Variable Name
headers
Value
[headers](URL#Input)
…End Repeat
Prefix / Suffix Lines ?
  • Prefix
  • Suffix
Text
*
Replace Selected Text ?
Replacement Text
Input