4 ms·
I see you are using regular formatting for code/shell commands on your comments. Not that that's a problem but just a note you can use one of HN's comments form
by rsapkf 6y ago
I see you are using regular formatting for code/shell commands on your comments. Not that that's a problem but just a note you can use one of HN's comments formatting tips[0] for this.
Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.)
[0]: https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc
- igor_chubin 6y agoWow! That's cool. Let's try it curl() { [ -t 1 ] && curl "$@" | sanitize || curl "$@"; }
- igor_chubin 6y agoYes it works! The difference is minimal though (it was intentionally a one-liner)
- aloknnikhil 6y agoI actually stick to regular formatting on HN because of how terribly code formatting on HN renders on a phone. It doesn't wrap around when you format it as code and I have to scroll horizontally since the width is fixed. But it's probably OK for something like this code snippet.