nojronatron / markdown-toc

VSCode Extension adds table of contents to an existing markdown file.
https://marketplace.visualstudio.com/items?itemName=jon-rumsey-dev.jr-markdowntoc-vscode
MIT License
1 stars 0 forks source link

Parens Break Link Frag anchoring #33

Closed nojronatron closed 2 months ago

nojronatron commented 2 months ago

Describe the bug

Parenthesis '(' and ')' characters in a Level 2 Heading are not screened out when the link fragment is creating, causing a linting error.

To Reproduce

  1. Create a Level 2 heading with parenthesis i.e. ## Ahead Of Time (AOT) Compilation
  2. Open Command Palette and select Create Table of Contents.
  3. Note the Lint Warning under the new link fragment.

Expected behavior

The '(' and ')' characters must be screened-out when the Link Fragment is generated. The characters are legal in the Heading and in the Link Fragment title.

Screenshots

none.

Environment

Additional context

none.

nojronatron commented 2 months ago

Closed with PR #36