Fixes an issue where a `small` element was closed with a `span` tag.