Limit generated headlines to h6

Currently it is possible to generate invalid headlines:

![](http://oi60.tinypic.com/35hmdug.jpg)

This is the simplest fix for it. Headlines with too many `#` will now be restricted to a `h6` (it mimics PHP Markdown in this case).