Discourse uses Markdown to format posts.
The forum text editor provides buttons to add common formatting.
If you paste in text with existing formatting, Discourse will try to use Markdown to maintain the format.
If you are not familiar with Markdown, here is a cheat sheet:
You can also add tables: