Editorial Workflows

Interactive Blockquotes

unlisted 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 workflow has no description.

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
If link tapped... ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
Hide Preview (Python) ?
Source Code
#coding: utf-8
import console
console.hide_output()
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If
Document Text ?
Folded Text
  • Include
  • Replace with:
Repeat with all headers... ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
^>\s([^#].+?)$
Match Group
0
Reverse
OFF
Generate Text ?
Text
%repeat:range
URL Escape ?
Generate Text ?
Text
<li><a href="editorial://?command=Interactive%20Blockquotes&input=Input">%repeat:text</a></li>
…End Repeat
Show HTML ?
HTML
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style> body { -webkit-font-smoothing: antialiased; font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif; font-size: 16px; line-height: 1.6125em; margin: 30px 0 0; padding:30px; } #wrapper { padding: 20px; } li { font-size: 110%; } li li { font-size: } li p { font-size: 100%; margin: .5em 0; } h1 { color: #333333; margin: 0; font-size: 1.5em; line-height: 1.05em; margin-bottom: 0.875em; } h2 { color: #333333; margin: 0; font-size: 1.375em; line-height: 1.05em; margin-bottom: 0.9545454545454546em; } h3 { color: #333333; margin: 0; font-size: 1.25em; line-height: 1.05em; margin-bottom: 1.05em; } h4 { color: #333333; margin: 0; font-size: 1.125em; line-height: 1.1666666666666667em; margin-bottom: 1.1666666666666667em; } h5 { color: #333333; font-size: 1.15em; line-height: 1.3em; margin: 1.3em 0; } h6 { font-size: 1em; line-height: 1.5em; margin: 1.5em 0; } body, p, td, div { color: #333333; font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif; word-wrap: break-word; } a { color: #0d6ea1; text-decoration: none; -webkit-transition: color 0.2s ease-in-out; -moz-transition: color 0.2s ease-in-out; -o-transition: color 0.2s ease-in-out; -ms-transition: color 0.2s ease-in-out; transition: color 0.2s ease-in-out; } a:hover { color: #3593d9; } .footnote { color: #0d6ea1; font-size: .8em; vertical-align: super; } #wrapper img { max-width: 100%; height: auto; } dd { margin-bottom: 1em; } li > p:first-child { margin: 0; } ul ul, ul ol { margin-bottom: .4em; } caption, col, colgroup, table, tbody, td, tfoot, th, thead, tr { border-spacing: 0; } table { border: 1px solid rgba(0, 0, 0, 0.25); border-collapse: collapse; display: table; empty-cells: hide; margin: -1px 0 1.3125em; padding: 0; table-layout: fixed; } caption { display: table-caption; font-weight: 700; } col { display: table-column; } colgroup { display: table-column-group; } tbody { display: table-row-group; } tfoot { display: table-footer-group; } thead { display: table-header-group; } td, th { display: table-cell; } tr { display: table-row; } table th, table td { font-size: 1.1em; line-height: 23px; padding: 0 1em; } table thead { background: rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.15); border-bottom: 1px solid rgba(0, 0, 0, 0.2); } table tbody { background: rgba(0, 0, 0, 0.05); } table tfoot { background: rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.15); border-top: 1px solid rgba(0, 0, 0, 0.2); } figure { display: inline-block; position: relative; margin: 1em 0 2em; } figcaption { font-style: italic; text-align: center; background: white; color: #666666; position: absolute; left: 0; bottom: -24px; width: 98%; padding: 1%; -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } figure:hover > figcaption { /* background: rgba(0,0,0,1) */ } .poetry pre { display: block; font-family: Georgia, Garamond, serif !important; font-size: 110% !important; font-style: italic; line-height: 1.6em; color: #B85C99; margin-left: 1em; } .poetry pre code { font-family: Georgia, Garamond, serif !important; word-break: break-all; word-break: break-word; /* Non standard for webkit */ -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; white-space: pre-wrap; } blockquote p { font-size: 110%; font-style: italic; color: #B85C99; line-height: 1.6em; } sup, sub, a.footnote { font-size: 1.4ex; height: 0; line-height: 1; position: relative; vertical-align: super; } sub { vertical-align: sub; top: -1px; } p, h5 { font-size: 1.1429em; line-height: 1.3125em; margin: 1.3125em 0; } dt, th { font-weight: 700; } table tr:nth-child(odd), table th:nth-child(odd), table td:nth-child(odd) { background: rgba(255, 255, 255, 0.06); } table tr:nth-child(even), table td:nth-child(even) { background: rgba(200, 200, 200, 0.25); } </style> </head> <body> <ul>Input</ul> </body> </html>
Title
TOC
Base URL
None