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

Commit

Permalink
Remove italic marks
Browse files Browse the repository at this point in the history
Fixes #30
  • Loading branch information
mcornella committed Sep 23, 2020
1 parent c74195a commit 83fb3ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ class MarkdownTocTools {
title = title.replace(/\[(.+)]\([^)]*\)/gi, "$1"); // replace link
title = title.replace(/<!--.+-->/gi, ""); // replace comment
title = title.replace(/\#*/gi, "").trim(); // replace special char
title = title.replace(/\b_|_\b/gi, ""); // replace italic marks

if (!(title in hashMap)) {
hashMap[title] = 0;
Expand Down

0 comments on commit 83fb3ee

Please sign in to comment.