File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const emoji = require('markdown-it-emoji')
8
8
const anchor = require ( 'markdown-it-anchor' )
9
9
const toc = require ( 'markdown-it-table-of-contents' )
10
10
const _slugify = require ( './slugify' )
11
+ const { parseHeaders } = require ( '../util' )
11
12
12
13
module . exports = ( { markdown = { } } = { } ) => {
13
14
// allow user config slugify
@@ -37,7 +38,8 @@ module.exports = ({ markdown = {}} = {}) => {
37
38
} , markdown . anchor ) )
38
39
. use ( toc , Object . assign ( {
39
40
slugify,
40
- includeLevel : [ 2 , 3 ]
41
+ includeLevel : [ 2 , 3 ] ,
42
+ format : parseHeaders
41
43
} , markdown . toc ) )
42
44
43
45
// apply user config
Original file line number Diff line number Diff line change 1
1
const spawn = require ( 'cross-spawn' )
2
2
const parseHeaders = require ( './parseHeaders' )
3
3
4
+ exports . parseHeaders = parseHeaders
5
+
4
6
exports . normalizeHeadTag = tag => {
5
7
if ( typeof tag === 'string' ) {
6
8
tag = [ tag ]
You can’t perform that action at this time.
0 commit comments