htmlpreview only works with html :(