HackerNews Post Formatter
Input
Preview
This is a normal paragraph.
This is another paragraph with italic text.
*This should show a literal asterisk.*
*This should also show a literal asterisk: *
This is a code block.
It should be displayed verbatim.
It was preceded by a blank line.
This should not be a code block: It was not preceded by a blank line.
http://example.com should be automatically converted into a clickable link.
http://example.com. Should be a link with a trailing period ignored.
https://secure.example.com should also be a link.
example.com should NOT be a link.
This emoji shouldn't show up:
Formatting Guide
- Blank lines separate paragraphs
- Text surrounded by asterisks is italicized. Use \* or ** for literal asterisk
- Text indented by two or more spaces after a blank line is shown verbatim (for code, do not use for quotes as it's hard to read on mobile)
- URLs that start with http are automatically converted to links. Trailing periods are ignored.
- Emojis are not displayed.
Source (HN Formatting Docs) - Their formatting guide is not always accurate.