Editorial Workflows

Workflow MD to RT

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: Copies all text to the clipboard, launches Workflow, converts Markdown to Rich Text and copies to Clipboard.

Note: In order for this to work the Workflow app and this workflow https://workflow.is/workflows/126d2cffdb694089ad0fee24991473c1 both must be installed

Shared by: jmreekes

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Document Text ?
Folded Text
  • Include
  • Replace with:
Set Clipboard ?
Can Open URL ?
Source Code
import workflow
import webbrowser

url_scheme = workflow.get_variable('base')

if url_scheme == None:
	url_scheme = workflow.get_input()
	
if url_scheme != None:
	check = webbrowser.can_open(url_scheme)
elif url_scheme == None:
	workflow.set_output('Stop')
	
if check == True:
	workflow.set_output('Go')
elif check == False:
	workflow.set_output('Stop')
Open x-callback URL ?
URL
workflow://x-callback-url/run-workflow?name=Editorial%20Markdown%20Rich%20Text%20Clipboard
x-success
editorial://workflow-callback
Output
  • First Parameter of x-success URL
  • Raw x-success URL