toto/kirby-soft-hyphens

Kirby plugin to render soft hyphens markers in writer fields

Maintainers

Package info

github.com/hansipete/kirby-soft-hyphens

Language:JavaScript

Type:kirby-plugin

pkg:composer/toto/kirby-soft-hyphens

Fund package maintenance!

hansipete

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 12

Open Issues: 0

v0.0.2 2025-01-30 22:01 UTC

This package is auto-updated.

Last update: 2026-03-01 00:46:49 UTC


README

Render visible soft hyphens ­ in k-writer fields.

Can be used in combination with Kirby Hidden Characters. That plugin adds a custom font to render (normally invisible) characters like spaces, line breaks, etc.

Unfortunately most applications (like modern browsers) will not make use of the glyph that is provided for the (control character) soft hyphen.

This plugin adds visual markers by appending them to soft hyphens in writer fields when they are mounted. The markers are wrapped in a custom <shy> tag.

(This tag will not be stored back to the content.txt as it's not on the allowed tags list of ProseMirror. So the highlight is only visible in the panel.)

Installation

composer require toto/kirby-soft-hyphens

Upcoming features / ideas

  • Add custom writer mark to add a soft hyphen to the text.