@@ -5,7 +5,7 @@ var toc = require('./index.js');
5
5
var utils = require ( './lib/utils' ) ;
6
6
var args = utils . minimist ( process . argv . slice ( 2 ) , {
7
7
boolean : [ 'i' , 'json' , 'firsth1' , 'stripHeadingTags' ] ,
8
- string : [ 'append' , 'bullets' , 'indent' ] ,
8
+ string : [ 'append' , 'bullets' , 'indent' , 'prepend' ] ,
9
9
default : {
10
10
firsth1 : true ,
11
11
stripHeadingTags : true
@@ -26,6 +26,8 @@ if (args._.length !== 1) {
26
26
'' ,
27
27
' --append: Append a string to the end of the TOC' ,
28
28
'' ,
29
+ ' --prepend <prefix>: Prepend a string to the beginning of each link (e.g. for BitBucket "Markdown")' ,
30
+ '' ,
29
31
' --bullets: Bullets to use for items in the generated TOC' ,
30
32
' (Supports multiple bullets: --bullets "*" --bullets "-" --bullets "+")' ,
31
33
' (Default is "*".)' ,
@@ -37,7 +39,7 @@ if (args._.length !== 1) {
37
39
'' ,
38
40
' --no-stripHeadingTags: Do not strip extraneous HTML tags from heading' ,
39
41
' text before slugifying' ,
40
- '' ,
42
+ '' ,
41
43
' --indent: Provide the indentation to use - defaults to \' \'' ,
42
44
' (to specify a tab, use the bash-escaped $\'\\t\')'
43
45
] . join ( '\n' ) ) ;
0 commit comments