Editorial Workflows

Markdown Link

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: Creates a reference-style Markdown link based on either a) clipboard contents or b) the current browser URL.

This workflow adapts Federico Viticci's workflow for creating Markdown links.

Shared by: jaredsinclair

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Clipboard or Browser? ?
Title
Clipboard or Browser?
Message
Use a link from the clipboard or from the built-in web browser?
Button 1
Clipboard
Output Value
from_clipboard
Button 2
Browser
Output Value
from_browser
Button 3
(don't show)
Output Value
Show Cancel Button
ON
If Clipboard ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
from_clipboard
Get Clipboard text ?
Text
Clipboard
Set linkHREF ?
Variable Name
linkHREF
Value
Input
…End If
If Browser ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
from_browser
Get browser URL ?
Text
Browser URL
Set linkHREF ?
Variable Name
linkHREF
Value
Input
…End If
Document Text ?
Folded Text
  • Include
  • Replace with:
Set Variable ?
Variable Name
docText
Value
Input
Set Variable ?
Variable Name
initialSel
Value
Sel. Range: Start:Sel. Range: End
Stop for Empty Selection ?
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 first!
…End If
Custom Action ?
Set Variable ?
Variable Name
linkname
Value
Input
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
1
Replace Selected Text ?
Replacement Text
[linkname]: linkHREF
Select Range ?
Range (from:to)
initialSel
Relative to
  • Entire Document
  • Current Selection
Replace Selected Text ?
Replacement Text
[Selected Text][linkname]
Show HUD ?
HUD Text
Link inserted!
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"