Full-width doesn't seem to work on Markdown cells
See original GitHub issueI can’t seem to get full-width
to work on Markdown cells, be it in regular .ipynb
notebooks or MyST-based notebooks with the +++ {"tags": ["full-width"]}
syntax.
What seems to be happening is that the MyST +++
syntax generates the correct .ipynb
source (presumably via JupyText?), with Markdown content split into cells with properly applied tags, but when that gets converted into HTML, the cells are merged and the tag information gets lost. At least when inspecting the generated HTML, there’s no div
that would group the content between a pair of +++
lines, to which the tags could be applied as classes.
Steps to reproduce the behavior:
jb create test-book
- Edit
notebooks.ipynb
, adding"tags": ["full-width"]
to themetadata
field of the first Markdown cell. jb build test-book
- Open the book in the browser.
As per the description of the +++
feature in the docs, I would expect the content in the page to be full-width, but it’s not.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (12 by maintainers)
Top GitHub Comments
great - thanks @dlukes !!
Indeed and “blame” is a problematic word for open source communities that I wish GitHub would change, as blameless cultures are IMO more productive / positive cultures for distributed communities - but that’s a conversation for another time.
I’ve got a PR here to try and clarify this language a bit: https://github.com/executablebooks/jupyter-book/pull/1042
in particular see this change for the full-width markdown: https://deploy-preview-1042--jupyter-book.netlify.app/content/layout.html#full-width-markdown-content
@dlukes wanna give the new full-width section a shot and let me know if this works for you?