Small cleanup and small improvement to slugify2.
Added HTML tags for anchors and headings.