File tree 3 files changed +31
-3
lines changed 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Generate a Table of Contents from a [**mdast**][mdast] tree.
7
7
[ npm] [ ] :
8
8
9
9
``` bash
10
- npm install remark -toc
10
+ npm install mdast-util -toc
11
11
```
12
12
13
13
** mdast-util-toc** is also available as an AMD, CommonJS, and globals
@@ -48,7 +48,7 @@ Yields:
48
48
``` js
49
49
{ index: null ,
50
50
endIndex: null ,
51
- map:
51
+ map:
52
52
{ type: ' list' ,
53
53
ordered: false ,
54
54
children: [ { type: ' listItem' , loose: true , children: [Object ] } ] } }
Original file line number Diff line number Diff line change
1
+ <!-- remark setext-->
2
+
3
+ <!-- lint disable no-multiple-toplevel-headings-->
4
+
5
+ 2.0.0 / 2016-07-23
6
+ ==================
7
+
8
+ * Rewrite to not mutate given node ([ #1 ] ( https://github.com/barrythepenguin/mdast-util-toc/issues/1 ) )
9
+
10
+ 1.0.1 / 2016-07-23
11
+ ==================
12
+
13
+ 1.0.0 / 2016-07-23
14
+ ==================
15
+
16
+ 0.2.0 / 2016-07-23
17
+ ==================
18
+
19
+ * expose map and index in result
20
+
21
+ 0.1.0 / 2016-07-18
22
+ ==================
23
+
24
+ * readme example usage
25
+ * include lib in packages
26
+ * readme and license
27
+ * deploy matrix
28
+ * initial commit
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mdast-util-toc" ,
3
- "version" : " 1 .0.1 " ,
3
+ "version" : " 2 .0.0 " ,
4
4
"description" : " Generate a Table of Contents (TOC) from a given Markdown file" ,
5
5
"main" : " index.js" ,
6
6
"files" : [
You can’t perform that action at this time.
0 commit comments