html: remove style from pre
html: avoid using map / reduce