Parenthesis '(' and ')' characters in a Level 2 Heading are not screened out when the link fragment is creating, causing a linting error.
To Reproduce
Create a Level 2 heading with parenthesis i.e. ## Ahead Of Time (AOT) Compilation
Open Command Palette and select Create Table of Contents.
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.
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
## Ahead Of Time (AOT) Compilation
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.