Markdown: validation: link: false positives in math code
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 56/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- tooling
Research direction
Start by reproducing the warning with markdown.validate.enabled in a Markdown document containing the shown $$ math block, then trace the Markdown validation path responsible for link.no-such-reference. Done means bracketed math expressions no longer produce false link warnings, while ordinary link validation continues to work.
Written by the indexing model from the issue text.
Description
Not links are detected as links in math, for example:
$$
c = 3 \left[ a - b \right]
$$
produces a warning: No link definition found: 'a - b \right' (link.no-such-reference). Obviously there is no link in the expression.
Often square brackets are used to simplify the perception of a formula with a lot of parentheses, it's not me being weird.
Since VSCode does render math, I think the issue is relevant to VSCode.
I guess links shouldn't be validated in math code at all, or only inside \text{...}.
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.123.0
- Commit: 6a44c352bd24569c417e530095901b649960f9f8
Steps to Reproduce:
- Have
"markdown.validate.enabled" = truein your settings - Open a markdown document and paste the code (or any other containing brackets
[and]on the same line):$$ c = 3 \left[ a - b \right] $$ - See the error is present.
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.9k
- PR merge metrics
- PR metrics pending
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
new release
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
All issues in microsoft/vscode
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·