Skip to content

从 VS Code 粘贴 HTML 时解析错误 #4382

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

Closed
Faith-YSQ opened this issue Mar 25, 2022 · 9 comments
Closed

从 VS Code 粘贴 HTML 时解析错误 #4382

Faith-YSQ opened this issue Mar 25, 2022 · 9 comments
Assignees
Labels
Milestone

Comments

@Faith-YSQ
Copy link

我新建了一个文档,在文档中间插入了一个表格,但是从vscode中复制一小段代码粘贴进表格时,不知道为什么,总是粘贴不进去不说,而且在表格下方出现了文档错乱和我要粘贴代码的不断重复粘贴

18-40-07.mp4
@88250
Copy link
Member

88250 commented Mar 25, 2022

版本是?

@Faith-YSQ
Copy link
Author

v1.9.4

@88250
Copy link
Member

88250 commented Mar 26, 2022

我这里重现不了,麻烦在默认主题下测试看看,如果能够重现,请帮忙制作一个测试用笔记本并打包上传一下,谢谢。

@Faith-YSQ
Copy link
Author

20220326090634-ddk6mah.zip

09-08-57.mp4

@Faith-YSQ
Copy link
Author

视频是新建笔记本的过程,测试的笔记本已经打包上传了

@88250
Copy link
Member

88250 commented Mar 26, 2022

从其他地方复制 <div></div> 能够重现吗?

@Faith-YSQ
Copy link
Author

从其他地方复制,不会重复好像,但是也粘贴不了;

09-46-38.mp4

@88250
Copy link
Member

88250 commented Mar 26, 2022

粘贴不了应该是正常的,被识别为 HTML 块,但是表格元素中不能包含块级元素,只能包含行级元素。

重复的问题从 .sy 看,是因为解析错误,导致了行级元素出现位置不对:

image

正常情况下,思源中不应该存在 InlineHTML 的,你关闭内核以后先手动删除一下 .sy 中的这个节点后重启重建索引。

@Faith-YSQ
Copy link
Author

好的

@88250 88250 changed the title 软件不停自动粘贴,停不下来 从 VS Code 粘贴 HTML 时解析错误 Mar 26, 2022
@88250 88250 added the Bug label Mar 26, 2022
@88250 88250 added this to the 1.9.5 milestone Mar 26, 2022
@88250 88250 closed this as completed Mar 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