Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion anchor-markdown-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function basicGithubId(text) {
// CJK punctuations that are removed
.replace(/[。?!,、;:“”【】()〔〕[]﹃﹄“ ”‘’﹁﹂—…-~《》〈〉「」]/g, '')
// latin-1 supplement chars that are removed
.replace(/[¡¢£¤¥¦§¨©«¬®¯±²³´¶·¸¹º»¼½¾¿]/g, '')
.replace(/[¡¢£¤¥¦§¨©«¬®¯°±²³´¶·¸¹»¼½¾¿]/g, '')
;

}
Expand Down
2 changes: 1 addition & 1 deletion test/anchor-markdown-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ test('\ngenerating anchor in github mode', function (t) {
, [ '_foo_bax_', null, '#foo_bax']
, [ '10% off', null, '#10-off']
, [ '1/2 affected', null, '#12-affected']
, [ '¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿Latin 1', null, '#%C2%AA%C2%B0%C2%B5latin-1']
, [ '¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿Latin 1', null, '#%C2%AA%C2%B5%C2%BAlatin-1']

].forEach(function (x) { check(x[0], x[1], x[2]) });
t.end();
Expand Down