Add tag rewriting

This is useful in case you'd like to rewrite some tags as you strip them.

For example, you might want to make headings of one type instead of completely stripping them.
Or you might want to only support bullet lists.