Skip to content

Add the hard-line-breaks plugin - #10026

Open
pmario wants to merge 3 commits into
TiddlyWiki:masterfrom
pmario:hard-line-breaks
Open

pmario wants to merge 3 commits into
TiddlyWiki:masterfrom
pmario:hard-line-breaks

Conversation

@pmario

@pmario pmario commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Adds an opt-in core plugin with one inline rule, ssnl: two spaces, or two spaces and a backslash, before the line end make a hard line break anywhere, list items and headings included, as in CommonMark. Discussed in #10025

  • Skip a break before a blank line, so paragraphs stay apart, and at the end of the text
  • Record the form written on the br node, so the wikitext-serialize plugin gives back the same text; a node an editor builds without it serializes to the backslash form, which survives tools that trim trailing whitespace
  • \rules except ssnl switches the rule off
  • Enable the plugin in the test, tw5.com and tw5.com-server editions. On tiddlywiki.com nine documentation lines end in two spaces before a text line and gain a break: seven list item labels in EventCatcherWidget written for exactly that, one line in the 5.4.0 note for Adds pointer capture and disabling support to eventcatcher widget #9609, and one list item in the 5.4.0 note for Intergrate tiddlywiki palette colors and settings to custom CSS properties #9333 whose next item then renders as text with a literal asterisk. The notes are left untouched
image

Two spaces, or two spaces and a backslash, before the line end make a
hard line break anywhere, list items and headings included, as in
CommonMark

* Skip a break before a blank line and at the end of the text
* Record the form written on the break node, so the wikitext-serialize
  plugin gives back the same text
* Include the plugin in the test, tw5.com and tw5.com-server editions
@netlify

netlify Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for tiddlywiki-previews ready!

Name Link
🔨 Latest commit 9a5c3f3
🔍 Latest deploy log https://app.netlify.com/projects/tiddlywiki-previews/deploys/6aa80d4be606810008366d7a
😎 Deploy Preview https://deploy-preview-10026--tiddlywiki-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

Copy link
Copy Markdown

Confirmed: pmario has already signed the Contributor License Agreement (see contributing.md)

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

✅ Change Note Status

All change notes are properly formatted and validated!

📝 $:/changenotes/5.5.0/#10026

Type: feature | Category: plugin
Release: 5.5.0

Added the Hard Line Breaks plugin: two spaces before the line end make a hard line break

🔗 #10026

👥 Contributors: pmario


📖 Change Note Guidelines

Change notes help track and communicate changes effectively. See the full documentation for details.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant