We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
heading2doc api 插入子文档的顺序不一致
我在改进重构插件的拆分标题为子文档的功能,结果发现按顺序调用api的结果是乱序的。经过排查,发现哪怕手动拖动标题到文档述操作的结果也是乱序的,因此确实是api实现的问题。
希望heading2doc的结果是确定的,无论是新插入的会在最下方还是最上方都好,但千万不要是随便找一个位置插入或上下交替插入。
No response
- Version: v2.10.13 - Operating System: win10 - Browser (if used):
无需日志
The text was updated successfully, but these errors were encountered:
使用的排序规则是?
Sorry, something went wrong.
标题转换文档后不设置 sort 值,在列出文档树的时候如果是自定义排序,sort 值相同(为 0)的情况下会根据文档 ID 中的时间部分进行降序,其他排序方式没有这个比较,可能会有问题。
使用的是自定义排序。那应该如何操作才能让它按顺序插入?
我们调整一下,heading2doc/li2doc 时在自定义排序 sort.json 中插入一个当前层级下最小的 sort 值,这样就可以排序在顶部了。
🎨 Improve heading2doc/li2doc sorting Fix #9668
5091542
88250
No branches or pull requests
heading2doc api 插入子文档的顺序不一致
Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
我在改进重构插件的拆分标题为子文档的功能,结果发现按顺序调用api的结果是乱序的。经过排查,发现哪怕手动拖动标题到文档述操作的结果也是乱序的,因此确实是api实现的问题。
Expected result
希望heading2doc的结果是确定的,无论是新插入的会在最下方还是最上方都好,但千万不要是随便找一个位置插入或上下交替插入。
Screenshot or screen recording presentation
No response
Version environment
Log file
无需日志
More information
No response
The text was updated successfully, but these errors were encountered: