-
Notifications
You must be signed in to change notification settings - Fork 38.2k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugfeature-requestRequest for new features or functionalityRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersmarkdownMarkdown support issuesMarkdown support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)verifiedVerification succeededVerification succeeded
Milestone
Description
Versions info
- VS Code Version: 1.61.2
- OS Version: Ubuntu 20.04.2 LTS
Related issues
#81891 (cloased)
#59999 (cloased)
Steps to Reproduce:
- Edit a markdown file with following content:
hello.py hello.name - Open markdown preview
the entries are displayed as an html links
Does this issue occur when all extensions are disabled?
Yes
Source of the issue
- VS Code use markdown-it which use linkify-it to display the links preview.
- in linkify-it fuzzyLink option - used to recognize URL-s without http(s):// head - has a default value of true.
Possible solution
Set fuzzyLink to false, using markdown-it linkfy function as follow:
md.linkify.set({ fuzzyLink: false }); // disables converting URL without http(s):// head to linkas explained here. But, I don't know where should I add this code snippet, nor how to edit Markdown-it rendering options in VS Code,
Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugfeature-requestRequest for new features or functionalityRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersmarkdownMarkdown support issuesMarkdown support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)verifiedVerification succeededVerification succeeded