Editorial Workflows

Lazy Reference Link

unlisted 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: Add a lazy reference link from the clipboard or browser in the format of [link][*].

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Stop if no text is selected ?
Run the block if
Selected Text
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
Select some text!
…End If
Prompt for clipboard or browser source ?
Title
Generate link from
Message
Generate link from
Button 1
Clipboard
Output Value
clipboard
Button 2
Browser
Output Value
browser
Button 3
(don't show)
Output Value
Show Cancel Button
ON
If it's a clipboard link... ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
clipboard
Set Variable ?
Variable Name
link
Value
Clipboard
…End If
If it's a browser link... ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
browser
Set Variable ?
Variable Name
link
Value
Browser URL
…End If
Stop if no link found ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
No clipboard or browser link available.
…End If
Save Initial Cursor ?
Variable Name
initialsel
Value
Sel. Range: Start:Sel. Range: End
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
1
Replace Selected Text ?
Replacement Text
[*]: link
Select Range ?
Range (from:to)
initialsel
Relative to
  • Entire Document
  • Current Selection
Replace Selected Text ?
Replacement Text
[Selected Text][*]%cursor