onlyafly / number-headings-obsidian

Automatically number headings in a document in Obsidian
MIT License
114 stars 11 forks source link

numbing does not look correct #29

Closed zhao414 closed 2 years ago

zhao414 commented 2 years ago

The numbering result of the following note is not correct.

---
number headings: first-level 1, max 6, _.1.1
---

# h1
## 1 h1-2
### 1.1 h1-2-1
## 2 h1-3
### 2.1 h1-3-1
### 2.2 h1-3-2

# h2
## 3 h2-1
### 3.1 h2-1-1
### 3.2 h2-1-2
## 4 h2-2

The expected result would be:

---
number headings: first-level 1, max 6, _.1.1
---

# h1
## 1 h1-2
### 1.1 h1-2-1
## 2 h1-3
### 2.1 h1-3-1
### 2.2 h1-3-2

# h2
## 1 h2-1
### 1.1 h2-1-1
### 1.2 h2-1-2
## 2 h2-2
zhao414 commented 2 years ago

Hi, I made a pull request which may fix this issue.

onlyafly commented 2 years ago

Fixed in version 1.9.0