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

[Bug]: 重复生成大量block id #81

Closed
u2003 opened this issue Sep 28, 2024 · 11 comments · Fixed by #84
Closed

[Bug]: 重复生成大量block id #81

u2003 opened this issue Sep 28, 2024 · 11 comments · Fixed by #84
Labels
bug Something isn't working

Comments

@u2003
Copy link

u2003 commented Sep 28, 2024

Describe the bug

不知道为什么,打开写入blockid选项之后,已经加过高亮或者::的笔记都能被追踪到,但是有不小概率造成一些卡片后面的blockid爆炸性的增加,我没搞明白是怎么会触发的,因为不是所有卡片都会被重复追加blockid。
CleanShot_2024-09-28_213005@2x

To Reproduce

Toggle Blocked

Expected behavior

no repeated blockades

Screenshots

No response

OS of your device

Mac(Apple Silicon)

Obsidian version

1.6.7

Plugin version

1.12.5.11

Installer version

No response

Additional context

No response

Config file

No response

@u2003 u2003 added the bug Something isn't working label Sep 28, 2024
@Newdea
Copy link
Collaborator

Newdea commented Sep 28, 2024

请提供文件md(注意删除个人信息)

@u2003
Copy link
Author

u2003 commented Sep 29, 2024

eo.md

@Newdea
Copy link
Collaborator

Newdea commented Sep 30, 2024 via email

@u2003
Copy link
Author

u2003 commented Oct 5, 2024

真的爆炸性增长,我的库快炸了都

@u2003
Copy link
Author

u2003 commented Oct 5, 2024

这两天又给炸了

@u2003
Copy link
Author

u2003 commented Oct 5, 2024

@u2003
Copy link
Author

u2003 commented Oct 5, 2024

我猜测可能是因为连续多个::的行之间没有用多个空行隔开???

@u2003
Copy link
Author

u2003 commented Oct 7, 2024

我在每个::所在的行之间都加了空行,block id还是爆炸性增长…… sigh

@Newdea
Copy link
Collaborator

Newdea commented Oct 7, 2024

是卡片文本解析有问题,临时解决方案是,修改下设置项:
Screenshot at 2024-10-07 19-59-12

@u2003
Copy link
Author

u2003 commented Oct 7, 2024

请问这一项具体是什么意思呢,插件在解析卡片的时候除了在md源码里加上block id之外,也没有看到有html注释呀

@Newdea
Copy link
Collaborator

Newdea commented Oct 8, 2024

是借用原插件的这个设置项,就是在blockid前的分隔符的区分(空格,或回车),
之前版本是都正常的,但最近几版原插件的代码重构的比较多,就出现这个不兼容的问题了

Newdea added a commit that referenced this issue Oct 10, 2024
@Newdea Newdea mentioned this issue Oct 10, 2024
@Newdea Newdea closed this as completed in 6d8d92b Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants