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

Rendering of tables

Open nthiery opened this issue 2 years ago • 0 comments

Not sure whether this is intentional or a bug, but reporting just in case :-)

With the new jupyterlab-myst, tables seem to be configured to take the whole width by default:

image

when in pre javascript jupyterlab-myst 0.1.7a6 they took just the minimal width to display the content, which, to me, is much more readable:

image

The underlying markdown:

|                                                                   |         |
|-------------------------------------------------------------------|---------|
| <div style="width: 4ex; height: 4ex; background: green;"  ></div> | Curieux |
| <div style="width: 4ex; height: 4ex; background: magenta;"></div> | Énervé  |
| <div style="width: 4ex; height: 4ex; background: yellow;" ></div> | Inquiet |
| <div style="width: 4ex; height: 4ex; background: blue;"   ></div> | Fatigué |

Notes:

  • This can be reproduced with the following minimal example:

    | a   | b   |
    | --- | --- |
    | c   | d   |
    
  • This can be reproduced in the sandbox of mystmd.org.

Cheers

nthiery avatar Sep 15 '23 22:09 nthiery