jupyterlab-myst icon indicating copy to clipboard operation
jupyterlab-myst copied to clipboard

Headings get shown twice in first cell of a notebook

Open batpad opened this issue 1 year ago • 3 comments

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 https://github.com/executablebooks/jupyterlab-myst/issues/222#issuecomment-2007702221 ?

cc @rowanc1

batpad avatar Mar 28 '24 21:03 batpad

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
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! :tada:

welcome[bot] avatar Mar 28 '24 21:03 welcome[bot]

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?

agoose77 avatar Apr 25 '24 10:04 agoose77

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

batpad avatar Jun 10 '24 07:06 batpad