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

改进文件树上的文档拖拽转换标题时的交互 #876

Closed
Vanessa219 opened this issue Dec 29, 2020 · 2 comments
Closed

改进文件树上的文档拖拽转换标题时的交互 #876

Vanessa219 opened this issue Dec 29, 2020 · 2 comments
Assignees
Milestone

Comments

@Vanessa219
Copy link
Member

Vanessa219 commented Dec 29, 2020

  • 支持位置(上或下)
  • 改进样式
@Vanessa219 Vanessa219 self-assigned this Dec 29, 2020
@Vanessa219 Vanessa219 added this to the 0.5.46 milestone Dec 29, 2020
@88250 88250 changed the title 文件树上的md文件拖拽到文档中的交互改进 改进文件树上的文档拖拽转换标题时的交互 Dec 29, 2020
@88250 88250 self-assigned this Dec 29, 2020
@88250 88250 closed this as completed Dec 29, 2020
@deerainw
Copy link

deerainw commented Dec 31, 2020

v0.5.46 这个版本文档块转标题块时,标题的级别规则被搞乱了

这是转换前的文档块:

image

这是转换成标题块之后:

image

上面的「秦朝」在转换成标题块后应该变为 H1 才对。因为下面的「重刑主义」「罪名」原本是隶属于「秦朝」的,它俩是 H2 那么「秦朝」应该是 H1


如果把文档块拖动到 H2 标题的下方,又有另外的问题,原本的文档标题变成了 H4,比隶属于它的标题还低一级:

image


把文档块拖动到 H3 标题下方的时候,原本的文档标题变成了 H6,比隶属于它的标题还低两级:

image


下属子标题还算正常,感觉问题可能出在处理文档块标题的代码上......

@88250
Copy link
Member

88250 commented Dec 31, 2020

@deerainw 收到,下个版本修复。

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

3 participants