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

Reset number when #13

Closed
tombroens opened this issue Oct 4, 2021 · 2 comments
Closed

Reset number when #13

tombroens opened this issue Oct 4, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@tombroens
Copy link

Love your plugin but there is a snag....

When the option 'Skip top heading level' is active. The behaviour is a bit unexpected. I would expect the follow heading (##) to start at 1 every time there is a new heading 1 (#). E.g. now numbering results in this:

# Heading 1
## 1 Heading 2
### 1.1 Heading 3
### 1.2 Heading 3
## 2 Heading 2
### 2.1 Heading 3
### 2.2 Heading 3
## 3 Heading 2
### 3.1 Heading 3
### 3.2 Heading 3

# Heading 1
## 4 Heading 2
### 4.1 Heading 3
### 4.2 Heading 3
## 5 Heading 2
### 5.1 Heading 3
### 5.2 Heading 3

while I would expect this:

# Heading 1
## 1 Heading 2
### 1.1 Heading 3
### 1.2 Heading 3
## 2 Heading 2
### 2.1 Heading 3
### 2.2 Heading 3
## 3 Heading 2
### 3.1 Heading 3
### 3.2 Heading 3

# Heading 1
## 1 Heading 2
### 1.1 Heading 3
### 1.2 Heading 3
## 2 Heading 2
### 2.1 Heading 3
### 2.2 Heading 3

Am I missing something? Maybe add an option 'Reset counter after every top heading"?
@onlyafly
Copy link
Owner

Good point. I can see how that would be useful. I'll look into it.

@onlyafly onlyafly added the enhancement New feature or request label Oct 26, 2021
@onlyafly
Copy link
Owner

Fixed in 1.9.0

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

No branches or pull requests

2 participants