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

Incorrect outline #813

Open
achiyae opened this issue Nov 15, 2023 · 0 comments
Open

Incorrect outline #813

achiyae opened this issue Nov 15, 2023 · 0 comments
Labels
awaiting release This has already been dealt with but is not yet available bug Something isn't working right

Comments

@achiyae
Copy link
Contributor

achiyae commented Nov 15, 2023

What is happening?
When using the following page, a wrong outline is generated when using the Outliner extension (@runargs ).

# Untitled

# H1.1

## H1.1 > H2.1

### H1.1 > H2.1 > H3.1

# H1.2

# H1.3

What should be happening?
The H1.2 and H1.3 should be at the same level as H1.1.

By the way, if I remove the H3.1 line - the outline is correct.

Screenshots (if applicable):
image

Operating system/browser name & version:
Windows 11 with Chrome 119.0.6045.124

notion-enhancer and/or notion-repackaged version:
notion-enhancer

notion-enhancer configuration (enabled/disabled mods and their settings):

{
  "0f0bf8b6-eae6-4273-b307-8fc43f2ee082": {
    "force_load": false
  },
  "36a2ffc9-27ff-480e-84a7-c7700a7d232d": {
    "panel.pinned": true,
    "panel.width": 346
  },
  "5d7c1677-6f6d-4fb5-8d6f-5067bcd0e24c": {
    "target_db": "eda97f4aa62c4b24a486646ea207bde0"
  },
  "_mods": {
    "0a958f5a-17c5-48b5-8713-16190cae1959": true,
    "35815b3b-3916-4dc6-8769-c9c2448f8b57": true,
    "4034a578-7dd3-4633-80c6-f47ac5b7b160": false,
    "5174a483-c88d-4bf8-a95f-35cd330b76e2": true,
    "548fe2d7-174a-44dd-88d8-35c7f9a093a7": false,
    "5d7c1677-6f6d-4fb5-8d6f-5067bcd0e24c": false,
    "752933b5-1258-44e3-b49a-61b4885f8bda": true,
    "87e077cc-5402-451c-ac70-27cc4ae65546": true,
    "a2401ee1-93ba-4b8c-9781-7f570bf5d71e": true,
    "b28ee2b9-4d34-4e36-be8a-ab5be3d79f51": true,
    "d61dc8a7-b195-465b-935f-53eea9efe74e": true,
    "e0d8d148-45e7-4d79-8313-e7b2ad8abe16": true
  }
}
@achiyae achiyae added the bug Something isn't working right label Nov 15, 2023
achiyae added a commit to achiyae/notion-enhancer that referenced this issue Nov 15, 2023
Fix issue notion-enhancer#813 with the outliner extension.
Instead of inc-/dec- rementing the indentation by 18 each iteration, the fix multiplies the header level by 18. This way, jumping from level 3 to level 1 results in the correct indentation,
@dragonwocky dragonwocky added the awaiting release This has already been dealt with but is not yet available label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting release This has already been dealt with but is not yet available bug Something isn't working right
Projects
None yet
Development

No branches or pull requests

2 participants