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

🐛 一个小问题:带有 NodeHeadingC8hMarker 类型的块,编辑后,经常会被重置 #220

Open
1 task done
zhoutaosheng opened this issue May 26, 2024 · 4 comments

Comments

@zhoutaosheng
Copy link

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

描述问题 Describe the problem

可能是以前从markdown导入的块,在编辑后,总是被重置。
比如下面这样的块,将标题 Sphere 修改为 Sphere1 后,刷新后,就被重置成 Sphere

{
	"ID": "20230425200694-9j3zox2",
	"Type": "NodeHeading",
	"HeadingLevel": 3,
	"Properties": {
		"id": "20230425200694-9j3zox2",
		"updated": "20240430103841"
	},
	"Children": [
		{
			"Type": "NodeHeadingC8hMarker",
			"Data": "### ",
			"Properties": {
				"id": ""
			}
		},
		{
			"Type": "NodeText",
			"Data": "Sphere",
			"Properties": {
				"id": ""
			}
		}
	]
},

而现在的标题块,没有 NodeHeadingC8hMarker 这个部分,没有这个问题

{
	"ID": "20240430111210-zy3v0wi",
	"Type": "NodeHeading",
	"HeadingLevel": 3,
	"Properties": {
		"id": "20240430111210-zy3v0wi",
		"updated": "20240430111215"
	},
	"Children": [
		{
			"Type": "NodeText",
			"Data": "Spehre"
		}
	]
},

另外的线索是:

  • 标题块加粗了
  • 不完全必现,但切换到官方的daylight主题后,没有问题

期待的结果 Expected result

希望编辑后,不被重置。
或者提供能将全部笔记,重置为新的不带 NodeHeadingC8hMarker 的方法

截屏或者录屏演示 Screenshot or screen recording presentation

No response

版本环境 Version environment

- SiYuan Version: 3.0.15
- Dark+ Version: 2.0.1
- Operating System: Windows 11
- Browser (if used):

更多信息 More information

No response

@Zuoqiu-Yingyi
Copy link
Owner

这是思源的问题还是主题的问题啊👀

@zhoutaosheng
Copy link
Author

zhoutaosheng commented May 28, 2024

这是思源的问题还是主题的问题啊👀

确定是主题的问题,切换到思源官方的主题没有问题
所以现在,每次遇到的时候,我都切换到官方主题,修改好了再切换回 Dark+

@zhoutaosheng
Copy link
Author

@Zuoqiu-Yingyi 或者,你能猜测大概跟哪个模块有关系吗?我可以先关掉这部分特性

注:我已经尝试关掉 style/module/block-heading.css,仍然会有问题

@Zuoqiu-Yingyi
Copy link
Owner

@Zuoqiu-Yingyi 或者,你能猜测大概跟哪个模块有关系吗?我可以先关掉这部分特性

注:我已经尝试关掉 style/module/block-heading.css,仍然会有问题

重建索引一次试试, 好像重建索引后会自动转换 NodeHeading 节点的格式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants