mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-28 02:04:07 +03:00
Rename wrapper type
This commit is contained in:
parent
fe600c30ca
commit
93a52e00da
|
@ -58,7 +58,7 @@ function remarkWrapSection(userOptions = {}) {
|
||||||
const headingId = index === 0 ? 0 : headingsMap[index - 1].id
|
const headingId = index === 0 ? 0 : headingsMap[index - 1].id
|
||||||
const sectionId = headingId ? options.prefix + headingId : undefined
|
const sectionId = headingId ? options.prefix + headingId : undefined
|
||||||
const wrapperNode = {
|
const wrapperNode = {
|
||||||
type: 'paragraph',
|
type: 'section',
|
||||||
children,
|
children,
|
||||||
data: { hName: options.element, hProperties: { id: sectionId } },
|
data: { hName: options.element, hProperties: { id: sectionId } },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user