Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 74381a1

Browse files
committed
Remove decodeURI call which breaks on headings containing %
Fixes #35
1 parent 5fdee53 commit 74381a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class MarkdownTocTools {
403403

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

409409
private parseValidNumber(value : string) {

0 commit comments

Comments
 (0)