Hash in header

Hi,

Headings (atx-style) may contain a # sign as part of the text. These signs should not be concealed (i.e., replaced with § signs).

These commits ensure that only leading and trailing # signs are highlighted and concealed.

Thanks,