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

Bug: Header increment breaks when tags are used in the header #598

Closed
1 of 2 tasks
kndshein opened this issue Jan 26, 2023 · 2 comments · Fixed by #603
Closed
1 of 2 tasks

Bug: Header increment breaks when tags are used in the header #598

kndshein opened this issue Jan 26, 2023 · 2 comments · Fixed by #603
Assignees
Labels
bug Something isn't working obsidian Obsidian specific syntax issue or feature resolution/update-made A change has been made that should resolve this issue or request

Comments

@kndshein
Copy link

Describe the Bug

In a document with properly-incremented headers, when a tag (i.e. #) is added onto one of the headers, the sub-headers gets bumped up to the same level as the header with the tag.

How to Reproduce

Example to reproduce issue with

# Page Title
## Foo #tag
### Bar
### Baz

Linter Config for incrementing header:

 "Header Increment": {
      "Heading levels should only increment by one level at a time": true,
      "Start Header Increment at Heading Level 2": false
    },

Expected Behavior

Expected output:

# Page Title
## Foo #tag
### Bar
### Baz

The actual output:

# Page Title
## Foo #tag
## Bar
## Baz

Device

  • Desktop
  • Mobile

Reproducible in both v1.10.1 and v1.10.2

@kndshein kndshein added the bug Something isn't working label Jan 26, 2023
@pjkaufman pjkaufman self-assigned this Jan 27, 2023
@pjkaufman pjkaufman added the obsidian Obsidian specific syntax issue or feature label Jan 27, 2023
@pjkaufman
Copy link
Collaborator

Thanks for reporting this. It looks like it is an easy fix. I am pushing up the changes for it.

@pjkaufman
Copy link
Collaborator

This should be fixed on master and in the next release. Please let us know if that is not the case.

@pjkaufman pjkaufman added the resolution/update-made A change has been made that should resolve this issue or request label Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working obsidian Obsidian specific syntax issue or feature resolution/update-made A change has been made that should resolve this issue or request
Projects
Archived in project
2 participants