remark-flexible-toc 1.2.2 → 1.2.3
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/README.md +3 -5
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -48,9 +48,9 @@ Say we have the following file, `example.md`, which consists some headings.
|
|
|
48
48
|
### Subheading 2
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Say `example.js` looks as followings *(two ways):*
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
#### The first way of getting TOC via file.data
|
|
54
54
|
|
|
55
55
|
```javascript
|
|
56
56
|
import { read } from "to-vfile";
|
|
@@ -74,9 +74,7 @@ async function main() {
|
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
####
|
|
78
|
-
|
|
79
|
-
And our module, `example.js`, looks as follows:
|
|
77
|
+
#### The second way of getting TOC via a reference array in the options
|
|
80
78
|
|
|
81
79
|
```javascript
|
|
82
80
|
import { read } from "to-vfile";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../../src/index.ts"],"version":"5.9.
|
|
1
|
+
{"root":["../../src/index.ts"],"version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remark-flexible-toc",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Remark plugin to expose the table of contents via Vfile.data or via an option reference",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/esm/index.js",
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"url": "https://github.com/ipikuka/remark-flexible-toc/issues"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@eslint/js": "^9.
|
|
52
|
-
"@types/node": "^24.
|
|
51
|
+
"@eslint/js": "^9.37.0",
|
|
52
|
+
"@types/node": "^24.7.0",
|
|
53
53
|
"@types/remark-heading-id": "^1.0.0",
|
|
54
54
|
"@vitest/coverage-v8": "^3.2.4",
|
|
55
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
55
|
+
"@vitest/eslint-plugin": "^1.3.16",
|
|
56
56
|
"dedent": "^1.7.0",
|
|
57
|
-
"eslint": "^9.
|
|
57
|
+
"eslint": "^9.37.0",
|
|
58
58
|
"eslint-config-prettier": "^10.1.8",
|
|
59
59
|
"eslint-plugin-prettier": "^5.5.4",
|
|
60
|
-
"globals": "^16.
|
|
60
|
+
"globals": "^16.4.0",
|
|
61
61
|
"prettier": "^3.6.2",
|
|
62
62
|
"rehype-format": "^5.0.1",
|
|
63
63
|
"rehype-stringify": "^10.0.1",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"remark-rehype": "^11.1.2",
|
|
68
68
|
"rimraf": "^6.0.1",
|
|
69
69
|
"type-coverage": "^2.29.7",
|
|
70
|
-
"typescript": "^5.9.
|
|
71
|
-
"typescript-eslint": "^8.
|
|
70
|
+
"typescript": "^5.9.3",
|
|
71
|
+
"typescript-eslint": "^8.46.0",
|
|
72
72
|
"unified": "^11.0.5",
|
|
73
73
|
"vitest": "^3.2.4"
|
|
74
74
|
},
|