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

Commit 83fb3ee

Browse files
committed
Remove italic marks
Fixes #30
1 parent c74195a commit 83fb3ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ class MarkdownTocTools {
378378
title = title.replace(/\[(.+)]\([^)]*\)/gi, "$1"); // replace link
379379
title = title.replace(/<!--.+-->/gi, ""); // replace comment
380380
title = title.replace(/\#*/gi, "").trim(); // replace special char
381+
title = title.replace(/\b_|_\b/gi, ""); // replace italic marks
381382

382383
if (!(title in hashMap)) {
383384
hashMap[title] = 0;

0 commit comments

Comments
 (0)