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

Headings get shown twice in first cell of a notebook #229

Open
batpad opened this issue Mar 28, 2024 · 3 comments
Open

Headings get shown twice in first cell of a notebook #229

batpad opened this issue Mar 28, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@batpad
Copy link
Contributor

batpad commented Mar 28, 2024

Description

Steps to reproduce: In the first cell of a new notebook, convert to a Markdown cell and type the following text:

## Test heading

some text

Expected Output: Test Heading to be in an <h2> tag or so, and appear once.

Actual: Test Heading appears twice. It seems to generate an additional <h1> tag with markup like this:

<div id="skip-to-frontmatter" aria-label="article frontmatter" class="" style=""><h1 class="mb-0">Test heading</h1></div>

Screenshot of what this looks like:

image

Interestingly, this does not affect <h1> headings, so this issue does not affect this:

# Test heading

some text

Also, this only occurs in the first cell of a new notebook and does not affect subsequent cells.

Additional notes

I am testing this off the main branch running Jupyter lab locally. I can also see the issue present on a remote Jupyterhub running v2.3.1 .

This issue maybe the same as #222 (comment) ?

cc @rowanc1

@batpad batpad added the bug Something isn't working label Mar 28, 2024
Copy link

welcome bot commented Mar 28, 2024

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@agoose77
Copy link
Collaborator

Yes, for now this only affects <h2> headings. @fwkoch do you have a feeling about whether we want to relax this and lift any heading?

@batpad
Copy link
Contributor Author

batpad commented Jun 10, 2024

gentle bump here .. have had a few more users complain about this .. is there anything we could do to try and help? Thanks again :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants