File tree Expand file tree Collapse file tree 2 files changed +2
-44
lines changed
Expand file tree Collapse file tree 2 files changed +2
-44
lines changed Original file line number Diff line number Diff line change @@ -19460,28 +19460,7 @@ function linkify_headings() {
1946019460 if (!node.data.hProperties) node.data.hProperties = {};
1946119461 if (!node.data.hChildren) node.data.hChildren = [];
1946219462
19463- const span_node = {
19464- type: "element",
19465- tagName: "span",
19466- properties: { id: [slug], className: ["offset-anchor"] },
19467- };
19468-
19469- const a_node = {
19470- type: "element",
19471- tagName: "a",
19472- properties: {
19473- href: `${data.dir}#${slug}`,
19474- className: ["anchor"],
19475- "aria-hidden": true,
19476- },
19477- };
19478-
19479- if (node.depth > data.base_level + 1)
19480- //@ts-ignore
19481- span_node.properties["data-scrollignore"] = true;
19482-
19483- node.data.hChildren = [span_node, a_node];
19484-
19463+ node.data.hProperties.id = slug;
1948519464 children.forEach((v) => node.data.hChildren.push(v));
1948619465 });
1948719466 };
Original file line number Diff line number Diff line change @@ -18223,28 +18223,7 @@ function linkify_headings() {
1822318223 if (!node.data.hProperties) node.data.hProperties = {};
1822418224 if (!node.data.hChildren) node.data.hChildren = [];
1822518225
18226- const span_node = {
18227- type: "element",
18228- tagName: "span",
18229- properties: { id: [slug], className: ["offset-anchor"] },
18230- };
18231-
18232- const a_node = {
18233- type: "element",
18234- tagName: "a",
18235- properties: {
18236- href: `${data.dir}#${slug}`,
18237- className: ["anchor"],
18238- "aria-hidden": true,
18239- },
18240- };
18241-
18242- if (node.depth > data.base_level + 1)
18243- //@ts-ignore
18244- span_node.properties["data-scrollignore"] = true;
18245-
18246- node.data.hChildren = [span_node, a_node];
18247-
18226+ node.data.hProperties.id = slug;
1824818227 children.forEach((v) => node.data.hChildren.push(v));
1824918228 });
1825018229 };
You can’t perform that action at this time.
0 commit comments