Skip to content

on em-dashes #4

@goretkin

Description

@goretkin

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions