jupyter-book / jupyterlab-myst

Use MyST Markdown directly in Jupyter Lab
https://jupyter-book.github.io/jupyterlab-myst/
BSD 3-Clause "New" or "Revised" License
146 stars 18 forks source link

admonitions and classes #201

Closed parmentelat closed 9 months ago

parmentelat commented 10 months ago

Description

I am writing notebooks using MyST I am operating under the assumption that jlab and jbook should behave identically; is that a fair assumption ?

specifically I am trying to style admonitions a little further and have gone this way:

with that in place in my notebook I can create an admonition like so

      ````{admonition} using the custom class
      :class: seealso custom

      some minor comment that should show up with a smaller font
      ````

that renders under jbook as expected, i.e. like this (I have added another one without the custom class for comparison

image

however the same code produces 2 similarly-looking chunks when rendered under jlab

image

so at this point I wonder:

additional notes

I am aware that loading styles from _static is not a feature of jlab implicitly, and so I have made sure that was loaded in my jlab browser and for extra safety I have inspected the resulting html in jlab to make sure the custom class did not make it there, as opposed to the html output of jbook