File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ module.exports = toc;
26
26
*/
27
27
28
28
function toc ( str , options ) {
29
- return new utils . Remarkable ( )
29
+ var Remarkable = utils . Remarkable . Remarkable ;
30
+ return new Remarkable ( )
30
31
. use ( generate ( options ) )
31
32
. render ( str ) ;
32
33
}
Original file line number Diff line number Diff line change 56
56
"minimist" : " ^1.2.0" ,
57
57
"mixin-deep" : " ^1.1.3" ,
58
58
"object.pick" : " ^1.2.0" ,
59
- "remarkable" : " ^1.7.1 " ,
59
+ "remarkable" : " ^2.0.0 " ,
60
60
"repeat-string" : " ^1.6.1" ,
61
61
"strip-color" : " ^0.1.0"
62
62
},
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ function read(fp) {
18
18
describe ( 'plugin' , function ( ) {
19
19
it ( 'should work as a remarkable plugin' , function ( ) {
20
20
function render ( str , options ) {
21
- return new utils . Remarkable ( )
21
+ var Remarkable = utils . Remarkable . Remarkable ;
22
+ return new Remarkable ( )
22
23
. use ( toc . plugin ( options ) )
23
24
. render ( str ) ;
24
25
}
You can’t perform that action at this time.
0 commit comments