bug fix: distinguish between headings and hr when '---' or '===' detected