Skip to content

Allow validation of extensionless links to non-markdown syntax files #189

Description

When working with "markdown.preferredMdPathExtensionStyle": "removeExtension" set, and a mix of MDX and MD files, it is not possible to validate and autocomplete links to MDX files from MD files using this language service.

The root cause, at least for validation, seems to be

export function tryAppendMarkdownFileExtension(config: LsConfiguration, linkUri: URI): URI | undefined {

This function requires all extensionless links in MD files to be handled by the language service. However, MDX files can't be handled by this service.

Perhaps a new setting ("markdown.knownMdExtensions": ["md", "mdx"]) could be added to allow link validation to find the file?

Metadata

Metadata

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions