Editorial Workflows

Link MD (clipboard)

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: Select text first that will have inline or reference link info appended.

This workflow adapts Federico Viticci's workflow for creating MD links from whatever page is open in the internal browser and enables it to work with info stored in the Clipboard too. This is not only great if you're doing a research session in browsers external to Editorial. It also great for creating wiki style links to other Editorial docs in your repository (local or Dropbox). The great thing about Federico's original workflow is that it allows you to choose inline or reference when creating the MD link and this provides that same functionality.

Shared by: jm

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
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
Show Alert ?
Title
Link Type
Message
Insert inline or reference link?
Button 1
Inline
Output Value
inline
Button 2
Reference
Output Value
reference
Button 3
(don't show)
Output Value
Show Cancel Button
ON
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
inline
Insert Inline Link ?
Replacement Text
[Selected Text](Clipboard)
Show HUD ?
HUD Text
Link inserted!
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"
…End If
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
reference
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]: Clipboard
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"
…End If