Add helper methods to generate markup depending on the output type