I think we can clean up all this unnecessary type checking now that the `options.hash` is used:

```javascript
tagname = options.tagname || 'h2';
```