Moved the `format_text` function to the formatting helper.
Tickets can now be linked to with `#123` and `project#123`.