Skip to content

Parse error when hyperlink dest/title in tables contain | symbol #7917

Closed
@Zuoqiu-Yingyi

Description

@Zuoqiu-Yingyi

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

表格中的超链接或图片的 链接/锚文本/标题 中包含 | 符号时渲染错误
Rendering error when a hyperlink or image in a table contains the | symbol in the Link/Anchor Text/Caption

Expected result

优化解析器以对超链接或图片中的 | 符号进行兼容
Optimize the parser to be compatible with the | symbol in hyperlinks or images

例如使用 \|| 进行转义
For example, \| is used to escape |

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.8.4-dev1
- Operating System: 
- Browser (if used):

Log file

无有效信息输出
No valid information output

More information

下面的 markdown 片段貌似 GitHub 的渲染器也无法兼容...

|                 |                 |                 |
| --------------- | --------------- | --------------- |
| ![👉|👈](1 "1") | ![2](👉|👈 "2") | ![3](3 "👉|👈") |
| [👉|👈](1 "1")  | [2](👉|👈 "2")  | [3](3 "👉|👈")  |
![👉 👈](1 "1") ![2](👉
[👉 👈](1 "1") [2](👉

需要使用 \| 符号进行转义

|                 |                 |                 |
| --------------- | --------------- | --------------- |
| ![👉\|👈](1 "1") | ![2](👉\|👈 "2") | ![3](3 "👉\|👈") |
| [👉\|👈](1 "1")  | [2](👉\|👈 "2")  | [3](3 "👉\|👈")  |
👉|👈 2 3
👉|👈 2 3

Activity

changed the title [-]表格中的超链接链接/锚文本/标题中包含 `|` 符号时无法正常解析 | Parse error when hyperlink links/anchor text/title in tables contain `|` symbols[/-] [+]Parse error when hyperlink links/anchor text/title in tables contain `|` symbols[/+] on Apr 7, 2023
88250

88250 commented on Apr 9, 2023

@88250
Member

重现步骤是将 Markdown 直接复制粘贴到编辑器中吗?我这里测试好像正常:

image

Zuoqiu-Yingyi

Zuoqiu-Yingyi commented on Apr 9, 2023

@Zuoqiu-Yingyi
ContributorAuthor

重现步骤是将 Markdown 直接复制粘贴到编辑器中吗?我这里测试好像正常:

image

在插入行级元素的输入框中输入, 之后需要在其他单元格随便输入一些字符

88250

88250 commented on Apr 9, 2023

@88250
Member

在插入行级元素的输入框中输入

抱歉,我没看懂你说的是哪个输入框,麻烦截图。

Zuoqiu-Yingyi

Zuoqiu-Yingyi commented on Apr 9, 2023

@Zuoqiu-Yingyi
ContributorAuthor

抱歉,我没看懂你说的是哪个输入框,麻烦截图。

直接上录屏吧, 需要在插入链接后在其他单元格中输入一些内容才能触发

思源笔记-bug反馈-47

changed the title [-]Parse error when hyperlink links/anchor text/title in tables contain `|` symbols[/-] [+]Parse error when hyperlink dest/title in tables contain `|` symbols[/+] on Apr 10, 2023
changed the title [-]Parse error when hyperlink dest/title in tables contain `|` symbols[/-] [+]Parse error when hyperlink dest/title in tables contain `|` symbol[/+] on Apr 10, 2023
self-assigned this
on Apr 10, 2023
added this to the 2.8.4 milestone on Apr 10, 2023
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@Zuoqiu-Yingyi

      Issue actions

        Parse error when hyperlink dest/title in tables contain `|` symbol · Issue #7917 · siyuan-note/siyuan