replace html-beautify with custom formatter