Template:Mdashb
—
Creates a "mdash breakable" i.e. an mdash followed by a zwsp (zero-width space).
Many browsers will not break a line after an mdash (and they never break before an mdash) so word{{mdash}}word
becomes a very big unbreakable sequence, causing bad line breaks. Coding word{{mdashb}}word
is the equivalent of word{{mdash}}{{zwsp}}word
. A zwsp (zero-width space) signals the browser that it's OK to break at that point.
The above documentation is transcluded from Template:Mdashb/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |