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

[Bug] incorrect hightlight of markdown code when an image is a link #4558

Open
1 of 2 tasks
YongBinnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn opened this issue Jun 12, 2024 · 0 comments

Comments

@YongBinnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Copy link

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.49.0#XQAAAAL2AAAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscoh2csNg4vd7GwCdnVlJIl66CpsoGy0dqobEnK0DbGnJHEfhmb5jkVFPVi5wTUVsa-dFNRdK-WKwvCRReyu71F23lmD8bOLNYGX65uEDMK2ZfFCSOtXHy_t6wkE5m2ea_NIiB20aICv3lHyeXL3Ifd09I6sZew5kUL-SMYA1r0OwHkn9FgUV2mh8dWcOdGNlcJn__FV84A

Monaco Editor Playground Code

const value = `[![](./x.png)](./x.html)`;

const myEditor = monaco.editor.create(document.getElementById("container"), {
	value,
	language: "markdown",
	automaticLayout: true,
});

Reproduction Steps

No response

Actual (Problematic) Behavior

the [![ and the ]] mismatched.

Expected Behavior

correctly highlight the code

Additional Context

When I was trying this on vscode.dev, it was not doing highlight at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant