You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -68,7 +68,7 @@ This script reads the `input.html` file above writes the results to `output.html
68
68
constunified=require("unified");
69
69
constparse=require("rehype-parse");
70
70
constslug=require("rehype-slug");
71
-
consttoc=require("rehype-toc");
71
+
consttoc=require("@jsdevtools/rehype-toc");
72
72
conststringify=require("rehype-stringify");
73
73
constfs=require("fs");
74
74
@@ -179,10 +179,10 @@ Here's the HTML that gets created by the above script. Notice that a table of co
179
179
180
180
Installation
181
181
--------------------------
182
-
You can install `rehype-toc` via [npm](https://docs.npmjs.com/about-npm/).
182
+
You can install Rehype TOC via [npm](https://docs.npmjs.com/about-npm/).
183
183
184
184
```bash
185
-
npm install rehype-toc
185
+
npm install @jsdevtools/rehype-toc
186
186
```
187
187
188
188
You'll probably want to install [unified](https://unifiedjs.com/), [rehype-parse](https://github.com/rehypejs/rehype/tree/master/packages/rehype-parse), [rehype-stringify](https://github.com/rehypejs/rehype/tree/master/packages/rehype-stringify), and [rehype-slug](https://github.com/rehypejs/rehype-slug) as well.
@@ -201,7 +201,7 @@ The Rehype TOC plugin works just like any other Rehype plugin. Pass it to [the `
201
201
202
202
```javascript
203
203
constunified=require("unified");
204
-
consttoc=require("rehype-toc");
204
+
consttoc=require("@jsdevtools/rehype-toc");
205
205
206
206
// Use the Rehype TOC plugin with its default options
207
207
unified().use(toc);
@@ -259,7 +259,7 @@ To build the project locally on your computer:
259
259
260
260
License
261
261
--------------------------
262
-
rehype-toc is 100% free and open-source, under the [MIT license](LICENSE). Use it however you want.
262
+
Rehype TOC is 100% free and open-source, under the [MIT license](LICENSE). Use it however you want.
0 commit comments