Make it work with htmlize.

Didn't test it very thoroughly, but I haven't noticed any regressions yet.

Fixes #16.