microsoft / microsoft/vscode-markdown-languageservice
"No link definition found" for footnotes
Open
@mjbvz is already working on this.
Since Dec 13, 2024.
feature-request
- Dominant language
- TypeScript
- Stars
- 438
- Forks
- 25
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 1
Description
When I use footnotes^fn1, the language server generates a warning.
Here’s a repro, put this is src/test/diagnostic.test.ts:
test('Should not generate diagnostic for valid footnotes', withStore(async (store) => {
const doc = new InMemoryDocument(workspacePath('doc.test.md'), joinLines(
`footnotes should work[^fn1]`,
``,
`[^fn1]: this is a footnote`,
));
const workspace = store.add(new InMemoryWorkspace([doc]));
const diagnostics = await getComputedDiagnostics(store, doc, workspace);
assertDiagnosticsEqual(diagnostics, []);
}));
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.
Assessment
This issue has not been assessed yet.