2 ms·
It took me a while to realise, but HN renders text in between stars as italics. So * italics * Becomes italics Indented text is rendered in verbati
by tormeh 11y ago
It took me a while to realise, but HN renders text in between stars as italics.
So
* italics *
Becomes
italics
Indented text is rendered in verbatim monospace
- zanny 11y agoIts called https://en.wikipedia.org/wiki/Markdown https://en.wikipedia.org/wiki/Markdown But its only a very limited subset of it. For example I cannot do [thing](url) URL links like you can on reddit. Anyone implementing a comment system that wants rich text should be using it, though, if a WYSIWYG editor is too much, or if its targeting a technical crowd.
- roryokane 11y agoThe text processing of Hacker News is described at https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc. HN only supports the two formatting types you described, plus auto-linking of URLs written out in full, such as the one in the previous paragraph.