Use semantic equivalence for HTML tests. Fixes gollum/gollum#649