You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When pasting code into a code block in plate.js, any code snippet that contains // comments is incorrectly recognized and rendered as links.
Expected behavior: content inside a code block should only be highlighted according to syntax highlighting rules, without applying any Markdown formatting such as links.
This bug makes code snippets unreadable and breaks the expected behavior of code blocks.
Reproduction URL
No response
Reproduction steps
1. Insert a code block.
2. Paste the following snippet (or any other code):
// this is a comment
console.log("hello world");
3. Actual result: the entire pasted code (starting from //) is rendered as links.
4. Expected result: the code should remain plain code with syntax highlighting, without being transformed into links.