Y
Hacker News
new
|
ask
|
show
|
jobs
by
armandososa
2985 days ago
You'll need to insert a newline and 2 spaces before a code block to be recognized as such:
switch(expr) { case 'foo': break; case { foo: bar }: break; }
https://news.ycombinator.com/formatdoc
1 comments
maemilius
2985 days ago
Ah, thanks. I should have guessed it would work something like that.
link