Non-breaking spaces and Hyphens

Hey… is it possible to use non breaking spaces in kirby markdown editor?
or do we have to use html entity   and ‑ as the only solution?

The editor seems to not suppoert CTRL+SHIFT+SPACEBAR or CTL+SHIFT+HYPHEN

thx in advance

since i need it again (also without hyphhens)… just a push of this thread.

any idea for example on text inside link tag?

in this example “foo bar” is a brand of a company that should always be written with non-breaking space:
(link: https://foo.bar text: website of foo bar company)

those did not work:
(link: https://foo.bar text: website of foo bar company)
(link: https://foo.bar text: website of foo bar company)

They are not parsed.

Yes, the htmlentities are unfortunately encoded in the link tag.

You have two options:

  1. Overwrite the link tag with your own HTML
  2. Use a Kirbytext hook to replace the company name with it’s non-breaking counterpart. For a more versatile solution, you could wrap such strings for example in curly braces.
1 Like