User:Omegatron/Dash syntax
Appearance
Proposal for dash code to be rendered as "real" dashes
Syntax
Hyphen -
- text-text
En dash –
- 1912-1934
- text_-_text
Em dash —
- text--text
- text_--_text
- text_---_text
Minus sign −
- _-123
- 123-_
- 123_-_123
Not covered
- Minus signs between text variables: a + b − c
Minus signs inside superscripts for chemical symbols: SO42−
Examples
Compound words are sometimes combined into one, but sometimes remain hyphenated: foo-bar.
- Compound words are sometimes combined into one, but sometimes hyphenated: foo-bar.
From 1923-1945, Mr. Foo frequently patronized bars.
- From 1923–1945, Mr. Foo frequently patronized bars.
Foos are timid creatures -- one was found hiding underneath a bar for several years -- and should not be approached carelessly.
- Foos are timid creatures — one was found hiding underneath a bar for several years — and should not be approached carelessly.
Foo's theorem derives a result of -3 from the equation 2 + 5 - 10, barring arithmetic mistakes
- Foo's theorem derives a result of −3 from the equation 2 + 5 − 10, barring arithmetic mistakes