toto / kirby-soft-hyphens
Kirby plugin to render soft hyphens markers in writer fields
Fund package maintenance!
hansipete
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:kirby-plugin
Requires
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.