Editorial Workflows

Webpage to Markdown

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: This powerful workflow combines my "Grab HTML" workflow with the 'HTML to Markdown" Custom Action I posted, to automatically generate a markdown document from the current page loaded in the built-in web browser.

Thanks to Aaron Swartz.

Note: I don't know where in the code to get rid of the console input. Any tips?

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Grab HTML ?
Source
//This sets the output of the workflow action: window.output = document.body.innerHTML
HTML To Markdown ?
Store Conversion ?
Variable Name
converted
Value
Input
Generate Document ?
Run the block if
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Comment ?
Store Name Input ?
Variable Name
doc
Value
Browser Title.md
Create Document ?
File Name
%var:doc
In Dropbox
OFF
New Text
converted
If File Does Not Exist
  • Create
  • Stop Workflow
Open Document ?
File Name
%var:doc
In Dropbox
OFF
…End If