@docusaurus/mdx-loader 0.0.0-4393 → 0.0.0-4394
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/remark/toc/search.js
CHANGED
|
@@ -33,7 +33,7 @@ function search(node) {
|
|
|
33
33
|
parentIndex: -1,
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
|
-
// Keep track of which previous index would be the current heading's
|
|
36
|
+
// Keep track of which previous index would be the current heading's direct parent.
|
|
37
37
|
// Each entry <i> is the last index of the `headings` array at heading level <i>.
|
|
38
38
|
// We will modify these indices as we iterate through all headings.
|
|
39
39
|
// e.g. if an ### H3 was last seen at index 2, then prevIndexForLevel[3] === 2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/mdx-loader",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4394",
|
|
4
4
|
"description": "Docusaurus Loader for MDX",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/mdx-loader.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/parser": "^7.16.4",
|
|
22
22
|
"@babel/traverse": "^7.16.3",
|
|
23
|
-
"@docusaurus/logger": "0.0.0-
|
|
24
|
-
"@docusaurus/utils": "0.0.0-
|
|
23
|
+
"@docusaurus/logger": "0.0.0-4394",
|
|
24
|
+
"@docusaurus/utils": "0.0.0-4394",
|
|
25
25
|
"@mdx-js/mdx": "^1.6.21",
|
|
26
26
|
"@mdx-js/react": "^1.6.21",
|
|
27
27
|
"escape-html": "^1.0.3",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"webpack": "^5.61.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@docusaurus/types": "0.0.0-
|
|
40
|
+
"@docusaurus/types": "0.0.0-4394",
|
|
41
41
|
"@types/escape-html": "^1.0.1",
|
|
42
42
|
"@types/mdast": "^3.0.7",
|
|
43
43
|
"@types/stringify-object": "^3.3.1",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=14"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "244d27da53388cca3bc9963e0b10710cdb1d3f58"
|
|
59
59
|
}
|
package/src/remark/toc/search.ts
CHANGED
|
@@ -46,7 +46,7 @@ export default function search(node: Node): TOCItem[] {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
// Keep track of which previous index would be the current heading's
|
|
49
|
+
// Keep track of which previous index would be the current heading's direct parent.
|
|
50
50
|
// Each entry <i> is the last index of the `headings` array at heading level <i>.
|
|
51
51
|
// We will modify these indices as we iterate through all headings.
|
|
52
52
|
// e.g. if an ### H3 was last seen at index 2, then prevIndexForLevel[3] === 2
|