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

配置为##后不起作用 #9

Closed
tench opened this issue Jun 27, 2019 · 9 comments
Closed

配置为##后不起作用 #9

tench opened this issue Jun 27, 2019 · 9 comments

Comments

@tench
Copy link

tench commented Jun 27, 2019

配置为##后怎么运行也不起作用了,只有设置回#时才有效果。

@yyalon
Copy link

yyalon commented Jul 25, 2019

setting "markdownIndex.indexBase": "#",but run Markdown add index not work

@Brandonnogithub
Copy link

same problem

@mShining
Copy link

Same problem.
But "#" works.
Fine.

@legendmohe
Copy link
Owner

配置为##后怎么运行也不起作用了,只有设置回#时才有效果。

为什么要设置成“##”?能举个例子吗?

@tench
Copy link
Author

tench commented Nov 5, 2019

我在# 里面放的是文档标题,整个文档就只有一个#标题,内容的标题一般从##开始,我现在都是在#的前面插一个空格来解决这个问题

@legendmohe
Copy link
Owner

我在# 里面放的是文档标题,整个文档就只有一个#标题,内容的标题一般从##开始,我现在都是在#的前面插一个空格来解决这个问题

# 这是标题

## 节1

内容内容内容

## 节2

内容内容内容

这样?indexBase是指用什么来表示标题,例如配成“=”,“@”, “*”等等。不是表示以什么来做首层的意思。你可以先选中你要编号的部分,运行命令,它只会处理你选中的部分。

@GSMix
Copy link

GSMix commented Dec 4, 2019

我是从仓库贡献者(@firejq)的一篇博客找过来的,博客说明的内容就是这个 issue 想要的功能。很奇怪,按道理他已经增加了这个功能了,为什么最新版本里不生效呢? @legendmohe

@firejq
Copy link

firejq commented Dec 4, 2019

我是从仓库贡献者(@firejq)的一篇博客找过来的,博客说明的内容就是这个 issue 想要的功能。很奇怪,按道理他已经增加了这个功能了,为什么最新版本里不生效呢? @legendmohe

@GSMix 当时我确实提交了 pr,但作者似乎没merge.

@chasezcz
Copy link

same problem

sharego added a commit to sharego/markdown_index that referenced this issue Aug 18, 2021
Sometime, we use first level as article title, others for TOC
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

8 participants