We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c09ec1e commit 103b533Copy full SHA for 103b533
‎src/headings.ts‎
@@ -105,7 +105,9 @@ export const heading: Schema = {
105
const { level, ...attributes } = node.transformAttributes(config);
106
const children = node.transformChildren(config);
107
108
- const slug = getSlug(config.headingSlugger, node.attributes, children);
+ const slug = config.headingSlugger
109
+ ? getSlug(config.headingSlugger, node.attributes, children)
110
+ : getTextContent(children);
111
112
const render = config.nodes?.heading?.render ?? `h${level}`;
113
0 commit comments