apply HTML syntax to closing tags. fixes #48