adding support for syntax highlighting and footnotes in headers