You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
outputFunc('Usage: doctoc [mode] [--entryprefix prefix] [--notitle | --title title] [--maxlevel level] [--all] [--update-only] <path> (where path is some path to a directory (e.g., .) or a file (e.g., README.md))');
65
+
outputFunc('Usage: doctoc [mode] [--entryprefix prefix] [--notitle | --title title] [--maxlevel level] [--all] [--update-only] [--syntax (md|mdx)] <path> (where path is some path to a directory (e.g., .) or a file (e.g., README.md))');
@@ -104,7 +104,7 @@ var entryPrefix = argv.entryprefix || '-';
104
104
varprocessAll=argv.all;
105
105
varstdOut=argv.s||argv.stdout
106
106
varupdateOnly=argv.u||argv['update-only']
107
-
107
+
varsyntax=argv['syntax']||"md"
108
108
varmaxHeaderLevel=argv.m||argv.maxlevel;
109
109
if(maxHeaderLevel&&isNaN(maxHeaderLevel)||maxHeaderLevel<0){console.error('Max. heading level specified is not a positive number: '+maxHeaderLevel),printUsageAndExit(true);}
110
110
@@ -120,7 +120,7 @@ for (var i = 0; i < argv._.length; i++) {
0 commit comments