Hacker News new | ask | show | jobs
by lombasihir 141 days ago
i was always curious how these em dashes were written? like in my keyboard i dont see the symbol, is there any shortcut?
3 comments

Some markdown-like static blog generators just replace -- with emdash.

I used one such in the past, written in PHP by someone who was keen on proper typography.

On macOS, option plus hyphen gives an em-dash. Also if you're on macOS you should try some other keyboard keys too with option.
I believe em-dash are made using shift-option-dash. AFAIK option-dash gives an en-dash.
Yeah that's right, thanks.
On Linux, it’s [Compose]--- (or [Compose]--. for an en dash)