Skip to content

Commit

Permalink
Remove decodeURI call which breaks on headings containing %
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella committed Sep 23, 2020
1 parent 5fdee53 commit 74381a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ class MarkdownTocTools {

private getHash(headername : string, mode : string, repetition : number) {
let anchor = require('anchor-markdown-header');
return decodeURI(anchor(headername, mode, repetition));
return anchor(headername, mode, repetition);
}

private parseValidNumber(value : string) {
Expand Down

0 comments on commit 74381a1

Please sign in to comment.