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
141 stars 16 forks source link

missing support for ```{div} directive #200

Closed parmentelat closed 5 months ago

parmentelat commented 7 months ago

using a {div} directive like so in a jupyterlab notebook

image

results in an output like this

image

Description

as far as I understand this is a chunk of legal MyST; at least the same code processed through jupyter-book results in a readable HTML output

Proposed solution

my understanding, from this comment below, is that not much is needed to make this widely available, am I correct ? https://github.com/executablebooks/jupyter-book/issues/1928#issuecomment-1824773862

Additional notes

if so a public release of this feature would be much appreciated :)

rowanc1 commented 7 months ago

Thanks @parmentelat, underlying tracking issue is here: https://github.com/executablebooks/mystmd/issues/749

We have thus far implemented in AST, not yet the directive. Happy to take a PR or pointers to the docs/test cases on what the options to the directives should be!

agoose77 commented 5 months ago

I'm closing this as it's an upstream feature request! :)

rowanc1 commented 4 months ago

Added in:

rowanc1 commented 4 months ago

This is released in jupyterlab-myst 2.4.0!

parmentelat commented 4 months ago

thank you !!