now handles bold and italics in headings