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

dev #1

Open
2234839 opened this issue Jun 4, 2024 · 4 comments
Open

dev #1

2234839 opened this issue Jun 4, 2024 · 4 comments

Comments

@2234839
Copy link
Owner

2234839 commented Jun 4, 2024

No description provided.

@2234839
Copy link
Owner Author

2234839 commented Jun 4, 2024

@88250 我发现要只更新一个块的文本好像不是一件简单的事,如果采取 /api/block/updateBlock 接口的话markdown会丢失块属性,而dom模式也没有获取一个块的dom的接口。

有没有接口可以直接对一个块的sy文件中的json进行读取和更新

更新后还要能自动更新块引用之类的。

@88250
Copy link

88250 commented Jun 4, 2024

markdown 模式用 kramdown 语法应该可以带属性,可以通过 getBlockKramdown 接口看看

@2234839
Copy link
Owner Author

2234839 commented Jun 4, 2024

@88250 通过思源笔记界面修改自定义属性不会触发块的updated字段更新,这个设计是有意的吗

@88250
Copy link

88250 commented Jun 4, 2024

应该是,这个如果没有需求的话保持不变为好。

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