Editorial Workflows

Preserve Line Breaks

public workflow

Install 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: Preserve Line Breaks was inspired by Brett Terpstra's Mac Service of the same name. To preserve a line break in iOS, markdown syntax requires that you type three spaces. But in iOS, typing two spaces generates a period, which drives me nuts. This workflow takes the text of a document, adds three spaces to the end of each line as required by Markdown, and the replaces the original text with the proper Markdown syntax.

Shared by: John Voorhees - @johnvoorhees, squibner.com, squibits.com

Comments: Comment Feed (RSS)

Axel Graff — 02 Aug 2014
I had the same problem, but found another solution: add the following line to your Editorial CSS file:
p {white-space: pre-line;}
anonymous — 15 Dec 2014
Where can I find the .css file?
anonymous — 13 Jan 2015
The period generated by iOS is configurable. Look at Settings->General->Keyboard-> "." Shortcut.
Turn it off and the period will not be generated after typing two spaces

+ Add Comment

Workflow Preview
Document Text ?
Folded Text
  • Include
  • Replace with:
Prefix / Suffix Lines ?
  • Prefix
  • Suffix
Text
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Replace Selected Text ?
Replacement Text
Input