-
Notifications
You must be signed in to change notification settings - Fork 571
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
New <main> tags breaks "--to slides" #2030
Comments
I'm using Thank you @edrogers for reporting the issue. I have the similar issue with the newest |
- as suggested here: hakimel/reveal.js#2082 - resolves jupyter#2030
- as suggested here: hakimel/reveal.js#2082 - resolves jupyter#2030
As of version 7.7.0, "a main landmark for the Notebook content" was added. This means that a new HTML tag,
<main>
tag is included in HTML output. (This was part of #2021.)Unfortunately, when you convert a Jupyter Notebook to HTML slides, this additional tag means that the page will not properly render. (Instead, the contents are all squeezed into the progress bar.) I've encountered this issue in multiple modern browsers on varying platforms.
Reproducible Example
File:
helloworld.ipynb
Command to convert:
If the above command is called with nbconvert 7.6.0, the resulting HTML renders fine. If it's run with nbconvert 7.7.0, the content is squeezed into the progress bar and is illegible.
Extra info:
The advice of this StackOverflow answer a few years ago suggested using CSS to prevent the main tag from affecting the layout. I tried it manually, and it worked. Alternatively, when I manually stripped the
<main>
tags from the document, that also worked.The text was updated successfully, but these errors were encountered: