The extract headings with paragraphs from the markdown function considered the paragraph of a heading to be the rest of the markdown content. However, it should extract up to the start of the next heading. If no subsequent heading found, the rest of the content is considered the paragraph. This change makes the paragraph extraction more accurate and relevant to each heading.
The extract headings with paragraphs from the markdown function considered the paragraph of a heading to be the rest of the markdown content. However, it should extract up to the start of the next heading. If no subsequent heading found, the rest of the content is considered the paragraph. This change makes the paragraph extraction more accurate and relevant to each heading.