Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown Intellisense with multiple identical labels shows non-unique anchors #831

Closed
gmccullo opened this issue Oct 8, 2020 · 1 comment · Fixed by #877
Closed

Markdown Intellisense with multiple identical labels shows non-unique anchors #831

gmccullo opened this issue Oct 8, 2020 · 1 comment · Fixed by #877
Assignees
Labels
Area: Auto completion Code completion and suggestion, aka IntelliSense. Issue: Bug Res: Fixed Fix is checked in, but it might be a few weeks until a release.
Milestone

Comments

@gmccullo
Copy link

gmccullo commented Oct 8, 2020

Problem

See screenshot. Each "item" should have a unique anchor value: "item", "item-1", "item-2" etc. Intellisense just shows the "item" multiple times. The table of contents was generated with an extension just to show how the links should be; it's not relevant to the issue.

Note: the behavior is the same with editor.wordBasedSuggestions on or off.

image

How to reproduce

Just make a file that looks like the screenshot. And try to make an internal link to one of the item headers.

# item

# item

# item

[link]()
@yzhang-gh
Copy link
Owner

Thanks for the feedback.


} else if (/\[[^\]]*\]\(#[^\)]*$/.test(lineTextBefore)) {

@yzhang-gh yzhang-gh added Area: Auto completion Code completion and suggestion, aka IntelliSense. Issue: Bug Help wanted Looking for help. labels Oct 8, 2020
@Lemmingh Lemmingh removed the Help wanted Looking for help. label Dec 22, 2020
@Lemmingh Lemmingh self-assigned this Dec 22, 2020
@Lemmingh Lemmingh added the Res: Fixed Fix is checked in, but it might be a few weeks until a release. label Jan 17, 2021
@Lemmingh Lemmingh added this to the Next milestone Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Auto completion Code completion and suggestion, aka IntelliSense. Issue: Bug Res: Fixed Fix is checked in, but it might be a few weeks until a release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants