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

简化块标、聚焦面包屑导航 #2278

Closed
88250 opened this issue Jul 1, 2021 · 0 comments
Closed

简化块标、聚焦面包屑导航 #2278

88250 opened this issue Jul 1, 2021 · 0 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Jul 1, 2021

之前在 Insider Issue 上有过讨论,这个 issue 会对列表大纲“一炮三响”的问题进行改进:

  • 块标:化简树中只存在单一父子节点(不存在兄弟节点)的情况
  • 导航:容器块方面仅关注列表项,忽略列表、引述和超级块

例一

* foo‸

之前会出现三个块标:列表、列表项、段落,这三个块形成的语法树是线型的,可以化简为列表,即隐藏列表项和段落块标,导航为 Doc > foo(i)

例二

* foo
  * bar‸

块标同样只出现列表,导航为 Doc > foo(i) > bar(i)

例三

* foo
  * bar‸
  * baz

此时 bar(i) 存在兄弟节点 baz(i) ,块标需要出现列表、列表项,导航为 Doc > foo(i) > bar(i)。如果光标插入符在 baz 位置,则导航为 Doc > foo(i) > baz(i),即列表项下只有一个子节点的情况时导航只关注到列表项这一层。

例四

* foo
  * bar‸
    
    baz

此时 bar(p) 存在兄弟节点 baz(p),块标为列表 bar(l)、列表项 bar(i)、段落 bar(p),即“一炮三响”,但导航可以化简为 Doc > foo(i) > bar(i) > bar(p),即列表项下出现多个子节点时父节点一层仍然可以忽略列表节点,父节点只关注列表项。

@88250 88250 added this to the 1.2.0-beta11 milestone Jul 1, 2021
@88250 88250 changed the title 简化列表大纲块标、聚焦面包屑 简化块标、聚焦面包屑导航 Jul 1, 2021
@88250 88250 closed this as completed Jul 1, 2021
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

2 participants