-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
In e.g. markdown, depending on what convention is used for spaces around em-dash, you can get different results after applying semantic line breaks. It seems that that dictates using spaces around em-dashes in the source. Perhaps this can be mentioned.
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 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.
Gist of four snippets, with rendering:
https://gist.github.com/goretkin/ab383aafaac4aa08d057b1c48fd196fd
(github issues use a flavor of markdown that does not support semantic line breaks)
mtsknn, TomFryers, mattt and tomtomjhj
Metadata
Metadata
Assignees
Labels
No labels