-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
When I type "[", a "\" appears before "[" in the markdown source code #1278
Comments
Same here. @Saul-Mirone do you have a plan/idea how to fix this? |
Same issue (but trailing slash) with using Shift+Enter and then typing anything. Edit: Found syntax-tree/mdast-util-to-markdown#45 |
I'm seeing this as well. If I include a [ in the initial value, it is parsed correctly and links work. But if a [ is typed into the editor, it is escaped with |
I've tested that this issue was introduced in 7.3.3 and still exists in 7.3.6. Reverting to 7.3.2 resolves the problem. |
That part was extracted as |
Is the escaping of square brackets intentional, or is it a bug that will be resolved at some point? I'm writing a plugin for wiki links, which uses square brackets. Is the expectation that I need to write an InputRule that removes escaped brackets? Is plugin-automd now required for commonmark support? It doesn't appear to be documented, but links no longer work with the commonmark preset alone. |
|
@Saul-Mirone |
Initial checklist
Affected packages and versions
7.3.3
Link to runnable example
No response
Steps to reproduce
当我输入
[
的时候,[
的前面会出现一个多余的\
。导致无法使用 Link和 Img,因为Link和Img是
[
开头。在官方的Playgroud中也出现了这个现象eg:
当我输入
在md源码中会被解析成
最终导致Link无法显示
Expected behavior
Actual behavior
Runtime
Electron
OS
macOS
Build and bundle tools
Vite
The text was updated successfully, but these errors were encountered: