optional html generator function for rpubs publishing