Skip to content

Paste hyperlink parsing exception in text containing bold #8475

Closed
@TinkMingKing

Description

@TinkMingKing
Contributor

在包含加粗元素的情况下粘贴超链接解析异常

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

Activity

TinkMingKing

TinkMingKing commented on Jun 6, 2023

@TinkMingKing
ContributorAuthor

如果是给超链加上样式,会分割为两部分

changed the title [-]部分加粗文字粘贴链接的bug[/-] [+]在包含加粗元素的情况下粘贴超链接解析异常[/+] on Jun 7, 2023
added this to the 2.9.1 milestone on Jun 7, 2023
changed the title [-]在包含加粗元素的情况下粘贴超链接解析异常[/-] [+]Paste hyperlink parsing exception in text containing bold[/+] on Jun 7, 2023
Vanessa219

Vanessa219 commented on Jun 7, 2023

@Vanessa219
Member

如果是给超链加上样式,会分割为两部分

这个没太明白,还麻烦详细说一下。

added a commit that references this issue on Jun 7, 2023
TinkMingKing

TinkMingKing commented on Jun 7, 2023

@TinkMingKing
ContributorAuthor

如果是给超链加上样式,会分割为两部分

这个没太明白,还麻烦详细说一下。

比如加上加粗样式会这样,斜体下划线之类的也会
添加样式前为一部分
image
添加样式后为两部分
image

Vanessa219

Vanessa219 commented on Jun 7, 2023

@Vanessa219
Member

这个是正常的,由于不支持 a 标签内再嵌套 b 标签,因此拆分为2个标签

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@TinkMingKing

      Issue actions

        Paste hyperlink parsing exception in text containing bold · Issue #8475 · siyuan-note/siyuan