Rename wrapper type

This commit is contained in:
Marcus Blättermann 2022-11-21 17:44:27 +01:00
parent fe600c30ca
commit 93a52e00da
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D

View File

@ -58,7 +58,7 @@ function remarkWrapSection(userOptions = {}) {
const headingId = index === 0 ? 0 : headingsMap[index - 1].id
const sectionId = headingId ? options.prefix + headingId : undefined
const wrapperNode = {
type: 'paragraph',
type: 'section',
children,
data: { hName: options.element, hProperties: { id: sectionId } },
}