Last I looked, hn was built with functions that wrapped primitive/direct generation of html... I can't imagine it'd take that many replacements to change the structure to use a hierarchy of paragraph-tags or divs (ironically that might also be easier to style with parent-child relationships...).
But I didn't look very hard at the code last time I looked.