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

Heading indentation incorrect in table of contents when heading level is 6 #15538

Closed
raghunb05 opened this issue Dec 17, 2023 · 5 comments
Closed
Milestone

Comments

@raghunb05
Copy link

raghunb05 commented Dec 17, 2023

Description

I have 6 levels of headings in my Jupyterlab notebook. The headings for each level are indented one within the other except for headings at level 6. This can be seen in the screenshot attached.

Reproduce

  1. Add 6 levels of headings in the markdown cells
  2. Open Table of Contents left sidebar to observe the headings
  3. The 6th level of headings are not properly indented within the 5th level.

Expected behavior

Expected behaviour is that the 6th level of headings should be indented relative to the 5th level.

Context

The version information is as below:
JupyterLab Version 3.6.3
Google Chrome Version 120.0.6099.109 (Official Build) (64-bit)
Windows 11, Version 10.0.22621

Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.
Screenshot 2023-12-17 153612
@raghunb05 raghunb05 added the bug label Dec 17, 2023
Copy link

welcome bot commented Dec 17, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to new issues that need triage label Dec 17, 2023
@JasonWeill
Copy link
Contributor

@raghunb05 Thank you for opening this issue! I noticed that you're using JupyterLab 3.6. The TOC (table of contents) extension was completely rewritten in JupyterLab 4. Do you still see this behavior in JupyterLab 4.0 or 4.1?

@JasonWeill
Copy link
Contributor

In JupyterLab 4.x, when I increase the TOC's maximum depth to 6 heading levels, I see an appropriate level of indentation all the way to H6.

image image

@JasonWeill JasonWeill added this to the 3.6.x milestone Dec 19, 2023
@JasonWeill JasonWeill removed the status:Needs Triage Applied to new issues that need triage label Dec 19, 2023
@raghunb05
Copy link
Author

Yes, I am on JupyterLab 3.6.3. That's because that's the version packaged with the latest version of the Anaconda distribution. In any case, if the issue is resolved in JupyterLab 4.x, it can be closed. Thanks for the prompt response.

@JasonWeill
Copy link
Contributor

If you can use conda-forge (e.g., conda install -c conda-forge jupyterlab) you should be able to get JupyterLab 4: https://anaconda.org/conda-forge/jupyterlab

Closing since this is fixed in Lab 4. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants