Skip to content

Commit

Permalink
fix: GitHub changed their header autolink format
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Ralphson <mike.ralphson@gmail.com>
  • Loading branch information
MikeRalphson committed Nov 2, 2023
1 parent d1a812b commit 012e710
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ function gfmLink(text) {
text = text.split('&gt;').join('');
text = text.split('<').join('');
text = text.split('>').join('');
text = text.split('(').join('');
text = text.split(')').join('');
text = text.split(' ').join('-');
return text;
return text.toLowerCase();
}

function define(anchors,name,auto,suffix) {
Expand Down
1 change: 1 addition & 0 deletions testRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var mdv = require('./index.js');

var argv = require('yargs')
.usage('testRunner [options] [{path-to-specs}...]')
.demand(1)
.boolean('debug')
.alias('d','debug')
.describe('debug','pass debug flag to mdv')
Expand Down

0 comments on commit 012e710

Please # to comment.