I have words delimited by dashes inside of inline code block. And I don't want the browser to break them. I searched for the solution and found that there is a non-breaking hyphen ‑
. But when I try to put it between backquotes markdown translates &
into &
and the
magic doesn't work.
So, is there any simple method to make markdown's inline code block non-breakable?
If ‑
doesn't work with the markdown editor, you could always use white-space:nowrap
.
span { white-space:nowrap; }
Example usage:
<span>Words-with-hyphens</span>
jsFiddle example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With