Closed
Description
在包含加粗元素的情况下粘贴超链接解析异常
Is there an existing issue for this?
- I have searched the existing issues
Can the issue be reproduced with the default theme (daylight/midnight)?
- I was able to reproduce the issue with the default theme
Could the issue be due to extensions?
- I've ruled out the possibility that the extension is causing the problem.
Describe the problem
如果文字部分加粗,如
你好啊
此时向其粘贴链接,就会有如下显示
你好啊你好啊
其中两个你好啊
都会被加入链接
Expected result
改进
Screenshot or screen recording presentation
No response
Version environment
- Version: 2.9.0
- Operating System: win11
- Browser (if used):
Log file
无
More information
No response
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
TinkMingKing commentedon Jun 6, 2023
如果是给超链加上样式,会分割为两部分
[-]部分加粗文字粘贴链接的bug[/-][+]在包含加粗元素的情况下粘贴超链接解析异常[/+][-]在包含加粗元素的情况下粘贴超链接解析异常[/-][+]Paste hyperlink parsing exception in text containing bold[/+]Vanessa219 commentedon Jun 7, 2023
这个没太明白,还麻烦详细说一下。
🐛 fix #8475
TinkMingKing commentedon Jun 7, 2023
比如加上加粗样式会这样,斜体下划线之类的也会


添加样式前为一部分
添加样式后为两部分
Vanessa219 commentedon Jun 7, 2023
这个是正常的,由于不支持 a 标签内再嵌套 b 标签,因此拆分为2个标签