File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ require('acquit-ignore')();
31
31
const { marked : markdown } = require ( 'marked' ) ;
32
32
const highlight = require ( 'highlight.js' ) ;
33
33
const { promisify } = require ( "util" ) ;
34
- const renderer = {
34
+ markdown . use ( {
35
35
heading : function ( text , level , raw , slugger ) {
36
36
const slug = slugger . slug ( raw ) ;
37
37
return `<h${ level } id="${ slug } ">
@@ -40,7 +40,7 @@ const renderer = {
40
40
</a>
41
41
</h${ level } >\n` ;
42
42
}
43
- } ;
43
+ } ) ;
44
44
markdown . setOptions ( {
45
45
highlight : function ( code , language ) {
46
46
if ( ! language ) {
@@ -52,7 +52,6 @@ markdown.setOptions({
52
52
return highlight . highlight ( code , { language } ) . value ;
53
53
}
54
54
} ) ;
55
- markdown . use ( { renderer } ) ;
56
55
57
56
const testPath = path . resolve ( cwd , 'test' )
58
57
You can’t perform that action at this time.
0 commit comments