astro-custom-toc 2.0.36 → 2.0.38
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.
|
@@ -90,7 +90,7 @@ const rehypeCustomToc = (userOptions) => {
|
|
|
90
90
|
* @param vFile.data The VFile data
|
|
91
91
|
*/
|
|
92
92
|
const transformer = (tree, { data }) => {
|
|
93
|
-
if (!data.astro || data.astro.frontmatter["showToc"] !== true)
|
|
93
|
+
if (!data.astro?.frontmatter || data.astro.frontmatter["showToc"] !== true)
|
|
94
94
|
return;
|
|
95
95
|
/* eslint-disable no-underscore-dangle */
|
|
96
96
|
if (!data.__astroHeadings)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro-custom-toc",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.38",
|
|
4
4
|
"description": "Astro Integration to generate a customizable table of contents",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"provenance": true
|
|
@@ -39,10 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://github.com/Robot-Inventor/astro-custom-toc#readme",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@astrojs/markdown-remark": "^
|
|
43
|
-
"@robot-inventor/ts-utils": "^0.
|
|
42
|
+
"@astrojs/markdown-remark": "^6.0.0",
|
|
43
|
+
"@robot-inventor/ts-utils": "^0.6.0",
|
|
44
44
|
"@types/hast": "^3.0.4",
|
|
45
|
-
"astro": "^4.5.17",
|
|
46
45
|
"hast-util-from-html": "^2.0.1",
|
|
47
46
|
"hast-util-to-html": "^9.0.1",
|
|
48
47
|
"hastscript": "^9.0.0",
|
|
@@ -56,6 +55,7 @@
|
|
|
56
55
|
"@changesets/cli": "^2.27.1",
|
|
57
56
|
"@robot-inventor/eslint-config": "^6.0.0",
|
|
58
57
|
"@robot-inventor/tsconfig-base": "^4.0.0",
|
|
58
|
+
"astro": "^5.1.1",
|
|
59
59
|
"eslint": "^9.0.0",
|
|
60
60
|
"prettier": "^3.2.5"
|
|
61
61
|
}
|