update extract_headings and niu-x2 theme