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

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

Closed
3 tasks done
Zuoqiu-Yingyi opened this issue Apr 7, 2023 · 4 comments
Closed
3 tasks done
Assignees
Labels
Milestone

Comments

@Zuoqiu-Yingyi
Copy link
Contributor

Zuoqiu-Yingyi commented Apr 7, 2023

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
@88250 88250 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 Apr 7, 2023
@88250
Copy link
Member

88250 commented Apr 9, 2023

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

image

@Zuoqiu-Yingyi
Copy link
Contributor Author

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

image

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

@88250
Copy link
Member

88250 commented Apr 9, 2023

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

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

@Zuoqiu-Yingyi
Copy link
Contributor Author

Zuoqiu-Yingyi commented Apr 9, 2023

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

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

思源笔记-bug反馈-47

@88250 88250 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 Apr 10, 2023
@88250 88250 changed the title Parse error when hyperlink dest/title in tables contain | symbols Parse error when hyperlink dest/title in tables contain | symbol Apr 10, 2023
@88250 88250 self-assigned this Apr 10, 2023
@88250 88250 added the Bug label Apr 10, 2023
@88250 88250 added this to the 2.8.4 milestone Apr 10, 2023
@88250 88250 closed this as completed Apr 10, 2023
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

2 participants