Add blank lines before headers, in markdown

This avoids issues with headers not being correctly rendered to html
Add tests for parsing penlight classes
Support detection of penlight classes
Fix dokx-extract-toc script