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

超链接元素标题中存在 " 字符时粘贴无法正常解析 #5974

Closed
1 task done
Zuoqiu-Yingyi opened this issue Sep 26, 2022 · 0 comments
Closed
1 task done
Assignees
Labels
Milestone

Comments

@Zuoqiu-Yingyi
Copy link
Contributor

Zuoqiu-Yingyi commented Sep 26, 2022

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

描述问题 Describe the problem

我有有个锚文本为 foo, URL 为 bar, title 为 000"foobar"111 的超链接, 其复制后的 markdown 源码为 [bar](foo "000"foobar"111"), 但是粘贴时无法正常解析:

  • 粘贴: 粘贴为了纯文本 <span data-type="a" data-href="foo" data-title="000"foobar"111">bar</span>
  • 粘贴为纯文本: 粘贴为了正常的超链接, 但是 title 属性丢失一部分 [bar](foo "000")
  • 粘贴转义文本: 粘贴为了转义的纯文本 \<span data-type\="a" data-href\="foo" data-title\="000"foobar"111"\>bar\</span\>

上面三种粘贴结果如下所示
image

期待的结果 Expected result

title 属性有 " 的超链接在粘贴时可以正常解析为

截屏或者录屏演示 Screenshot or screen recording presentation

No response

版本环境 Version environment

- Version: 2.2.1
- Operating System: 
- Browser (if used):

日志文件 Log file

无有效信息输出

更多信息 More information

No response

@Vanessa219 Vanessa219 assigned 88250 and unassigned Vanessa219 Sep 26, 2022
@Vanessa219 Vanessa219 added the Bug label Sep 26, 2022
@Vanessa219 Vanessa219 added this to the 2.2.2 milestone Sep 26, 2022
@88250 88250 changed the title 超链接元素的 title 中有转义后的 " 在粘贴时无法正常解析 超链接元素标题中存在 " 字符时粘贴无法正常解析 Sep 26, 2022
@88250 88250 closed this as completed Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants