Extract a valid heading level (1 - 6) from a tag name