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

支持标题自动编号 #522

Closed
ActuallyFishCanSwim opened this issue Nov 17, 2020 · 3 comments
Closed

支持标题自动编号 #522

ActuallyFishCanSwim opened this issue Nov 17, 2020 · 3 comments

Comments

@ActuallyFishCanSwim
Copy link

你在什么场景下需要该功能? In what scenarios do you need this function?

由于关系图是 按标题层级创建的,所以我列举了很多标题和子标题,并在标题前面加了1.1 // 1.2// 1.2.1// `1.2.2等序号表示逻辑顺序。类似于这这样

# 1.1标题
## 1.1.1子标题
## 1.1.2子标题
# 1.2标题
# 1.2.1标题
# 1.2.2.标题

于是就会出现一个问题,如果编辑途中因为逻辑的混淆,发现需要删掉一个标题以及它的子标题类似于这样,我删掉了 1.1标题和它的子标题

# 1.2标题
# 1.2.1标题
# 1.2.2.标题

它的序号不对劲了,我必须手动修改 1.2标题的序号为1.1 并且 逐级地修改子标题,十分麻烦

描述最优的解决方案 Describe the optimal solution

尝试提出的解决办法是:

  1. 在创建标题的时候,提供采用列表的逻辑,自身会根据 其他标题的变化 调整自身的序号,创造出标题列表。
  2. 标题列表的 前端序号可以为 1 // A // a // 1)// 希腊字母 // 罗马数字 凑齐 6种,也可以用其他的方式

描述候选解决方案 Describe the candidate solution

如果不实现标题列表,对于关系图 可以改进列表的显示方式:

  1. 对于列表内的标题 如下图所示

1. # 我是列表内的一个标题
(\t缩进markdown没显示)1. 我是内容1
(\t缩进markdown没显示)2. 我是内容2

  1. 可以识别 列表内的开始 标题子串,规定语法为 标题单独占一个列表项,然后将此标题 在关系图中显示出来

其他信息 Other information

@ActuallyFishCanSwim ActuallyFishCanSwim changed the title 标题列表的功能 标题列表的功能 》》》》》》》》》》》》》》》》》》》引入特性,忘记加标签了 Nov 17, 2020
@ActuallyFishCanSwim ActuallyFishCanSwim changed the title 标题列表的功能 》》》》》》》》》》》》》》》》》》》引入特性,忘记加标签了 标题列表的功能(引入特性) Nov 17, 2020
@88250
Copy link
Member

88250 commented Nov 17, 2020

如果是为了文档关系图层级显示的话,请等待 #62 完成。文档关系图不只是按照标题级别分层,也会按照容器分层,比如列表、子列表。

@88250
Copy link
Member

88250 commented Nov 19, 2020

感谢反馈我关闭了。

@88250 88250 closed this as completed Nov 19, 2020
@88250 88250 changed the title 标题列表的功能(引入特性) 支持标题自动编号 Aug 22, 2021
@realysy
Copy link

realysy commented Nov 19, 2023

@88250 希望添加(在不导致卡顿的前提下),因为能够通过序号(比如1.2)得知更清晰的层级关系(这是第一个一级标题下的第二个二级标题)

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

No branches or pull requests

3 participants