Use a special directive for parsing comments.

A slightly different regex for headings needed to be used for comments
in order to reflect how they are parsed on GitHub.