Fix heading detection in markdown2book.