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

Improve list item, super block and blockquote backlink propagation #13776

Closed
Wetoria opened this issue Jan 10, 2025 · 14 comments
Closed

Improve list item, super block and blockquote backlink propagation #13776

Wetoria opened this issue Jan 10, 2025 · 14 comments
Assignees
Milestone

Comments

@Wetoria
Copy link

Wetoria commented Jan 10, 2025

关于反链统一传递型块引展示效果

In what scenarios do you need this feature?

https://ld246.com/article/1736476952245

Describe the optimal solution

详见帖子

Describe the candidate solution

No response

Other information

No response

@IAliceBobI
Copy link

IAliceBobI commented Jan 10, 2025

补充一下:

引用都在段落块中。

如果段落块的父块是列表项,则不变。
如果段落块的父块是文档,则不变。
如果段落块的父块是标题,最好有个开关控制一下是否传递,有人喜欢,有人不喜欢。
如果段落块的父块是超级块、引述块,就传递父块。

很神奇,传递父块的一个小小改动,体验就能有巨大提升。

【表格,db,也能放引用,不过好像不影响。】

@88250 88250 self-assigned this Jan 10, 2025
@TCOTC
Copy link
Contributor

TCOTC commented Jan 10, 2025

我希望把面包屑加上

image

@Wetoria
Copy link
Author

Wetoria commented Jan 10, 2025

我希望把面包屑加上

image

面包屑可以说是另一个优化了,有需求的话,另开?

我提的这个仅仅只是调整一下判断逻辑

@88250 88250 changed the title 关于反链统一传递型块引展示效果 Improve list item, super block and blockquote backlink propagation Jan 11, 2025
@88250 88250 added this to the 3.1.20 milestone Jan 11, 2025
@88250
Copy link
Member

88250 commented Jan 11, 2025

反链面板:

image

引用计数浮窗就不处理折叠状态了,都是展开的:

image

@Wetoria
Copy link
Author

Wetoria commented Jan 11, 2025

image

这一条的效果好像有一点不太行的感觉?感觉这里展示出关联的列会好一点。
是不是把判断纯块引的段落提到前面过滤refBlockId那一块会好一点?实在不行,这样也算能接受。

@88250
Copy link
Member

88250 commented Jan 11, 2025

image

这种情况回退到仅展示段落?

@Wetoria
Copy link
Author

Wetoria commented Jan 11, 2025

这种情况回退到仅展示段落?

我是觉得回退到段落会比较好一点。如果代码好改的话,展示段落吧。

@88250
Copy link
Member

88250 commented Jan 11, 2025

试了下会有逻辑冲突,这里如果不统一用一个规则的话会导致传递非折叠的时候重复:

image

@Wetoria
Copy link
Author

Wetoria commented Jan 11, 2025

试了下会有逻辑冲突,这里如果不统一用一个规则的话会导致传递非折叠的时候重复:

image

目前的 关联型块引 展示的就是目标段落,这个逻辑应该还是不产生变动比较好。

image

感觉应该在前面过滤的时候就需要判断是不是纯块引的段落,这样就不会碰到重复处理的情况了。

我看代码是后续查询的时候再判断的,有可能提前不?

@88250
Copy link
Member

88250 commented Jan 11, 2025

等会我再试试看吧,应该可以提前的。

@88250
Copy link
Member

88250 commented Jan 11, 2025

image

@88250
Copy link
Member

88250 commented Jan 11, 2025

目前还差计数浮窗的统一 @Vanessa219

@cordinGH
Copy link

我希望把面包屑加上

image

支持。
有了这层面包屑,在一些情况下也方便以浮窗形式打开这些超级块。

@88250
Copy link
Member

88250 commented Jan 13, 2025

@cordinGH #13253

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

No branches or pull requests

6 participants