[#226] Make it easier to add new formats to the json/xml/text preview