I would like to use semantic line breaks in my document's source code, but I'm not sure what to do with em dashes: ---
.
sentence-per-line, no em-dash spaces:
The food---which was delicious---reminded me of home.
The food, which was delicious, reminded me of home.
clause-per-line, inconsistent em-dash spaces:
The food
---which was delicious---
reminded me of home.
The food,
which was delicious,
reminded me of home.
I would like both sources to render the same, but the clause-per-line version introduces a space before or after an em-dash.
I could instead use
sentence-per-line, em-dash spaces:
The food --- which was delicious --- reminded me of home.
and
clause-per-line, em-dash spaces:
The food
--- which was delicious ---
reminded me of home.
which render the same as each other and make the em-dash spacing situation consistent with the comma situation.
I would like to defer the style choice of how much space is around an em-dash, and be able to try different choices without modifying the source throughout.
I would prefer to continue using triple ASCII dash ---
, and could also consider using a Unicode character, but I do not want to use any backslash \
to invoke a command.
Related: Semantic linefeeds and problem with space before footnote mark
---
is like using a newline (or space) before.
it is almost always wrong.---
so that it always eats up the space around it? Or eats it up and then adds some back in?