update extract_headings plugin