add tests for text formatting
refactor html/text formatting modes into their own formatter classes
use proper formatters from views