File tree 2 files changed +2
-44
lines changed 2 files changed +2
-44
lines changed Original file line number Diff line number Diff line change @@ -19460,28 +19460,7 @@ function linkify_headings() {
19460
19460
if (!node.data.hProperties) node.data.hProperties = {};
19461
19461
if (!node.data.hChildren) node.data.hChildren = [];
19462
19462
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;
19485
19464
children.forEach((v) => node.data.hChildren.push(v));
19486
19465
});
19487
19466
};
Original file line number Diff line number Diff line change @@ -18223,28 +18223,7 @@ function linkify_headings() {
18223
18223
if (!node.data.hProperties) node.data.hProperties = {};
18224
18224
if (!node.data.hChildren) node.data.hChildren = [];
18225
18225
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;
18248
18227
children.forEach((v) => node.data.hChildren.push(v));
18249
18228
});
18250
18229
};
You can’t perform that action at this time.
0 commit comments