Rename headerToHtml to headingToHtml, to make sure the function gets called from the toHtml function