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

Fix : When splitting by H3, H1 get included into the new note. They should stay on the original note as H2 do. #89

Open
rad48 opened this issue Jan 20, 2023 · 2 comments

Comments

@rad48
Copy link

rad48 commented Jan 20, 2023

I'm trying to split notes where I have 3 levels of heading (1,2 and 3). I want to split the notes by H3. I would expect that H3 titles create new notes but that the heading 1 and 2 stay in the original note. What happens is that headings 2 stays in the original note but headings 1 are included in the new notes. Basically, splitting by H3 stops if it meets another H3, a H2 but not a H1.
I don't think it is normal behavior.

For example imagine a note like this :

Heading 1

Heading 2

Heading 3

Heading 1

Heading 2

Heading 3

Becomes after splitting by H3

Heading 1

Heading 2

[[Heading 3]] -> heading 1 is included in the note, it should not

Heading 2

[[Heading 3]]

It should be

Heading 1

Heading 2

[[Heading 3]]

Heading 1

Heading 2

[[Heading 3]]

Thanks for your kind help on this issue :)

@rad48
Copy link
Author

rad48 commented Jan 20, 2023

I have find a workaround. If you have the same issue, you can add H2 before a H1 so that the H1 won't be included in the H3 notes. After splitting, you can delete the H2.

@thesamim
Copy link

thesamim commented Jun 17, 2023

+1 for the request

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

2 participants