File tree 3 files changed +3
-7
lines changed
3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,7 @@ module.exports = toc;
26
26
*/
27
27
28
28
function toc ( str , options ) {
29
- return new utils . Remarkable ( )
30
- . use ( generate ( options ) )
31
- . render ( str ) ;
29
+ return new utils . Remarkable . Remarkable ( ) . use ( generate ( options ) ) . render ( str )
32
30
}
33
31
34
32
/**
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,9 +18,7 @@ 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 ( )
22
- . use ( toc . plugin ( options ) )
23
- . render ( str ) ;
21
+ return new utils . Remarkable . Remarkable ( ) . use ( toc . plugin ( options ) ) . render ( str )
24
22
}
25
23
26
24
var actual = render ( read ( 'test/fixtures/strip-words.md' ) , {
You can’t perform that action at this time.
0 commit comments