ryjjin / Obsidian-shortcuts-extender

Plugin for Obsidian: Use shortcuts for input special symbols and changing level of headings without language switching
70 stars 6 forks source link

All serial numbers will disappear except #### serial numbers which will not disappear #12

Closed zhl111 closed 2 years ago

zhl111 commented 3 years ago

image

ryjjin commented 2 years ago

Hi! Sorry for long reply. I cannot reproduce this bug, in my case was always clear the formatting entirely before changing the state of the line.

Can you say:

Just in case, try updating the plugin if suddenly your version is older than mine.

What behavior have I tested

1. take a numbered list as a source text, and change its heading levels.

From the text:

1. Test
2. Test
3. Test
4. Test
5. Test
6. Test

It turned out the following:

# Test
## Test
### Test
#### Test
##### Test
###### Test

2. take numbered headings of different levels and clear their formatting

From the text:

# 1. Test
## 2. Test
### 3. Test
#### 4. Test
##### 5. Test
###### 6. Test

I got:

Test
Test
Test
Test
Test
Test

3. take numbered headings of different levels and change their heading level

From the text:

# 1. Test
## 2. Test
### 3. Test
#### 4. Test
##### 5. Test
###### 6. Test

I got:

###### Test
##### Test
#### Test
### Test
## Test
# Test
ryjjin commented 2 years ago

Given the code rework in terms of cleaning up the formatting and indicating the level of headers - even if this bug had some kind of special case, now it has most likely disappeared. Let me know if this case repeats.