thebe icon indicating copy to clipboard operation
thebe copied to clipboard

Markdown outputs are not rendering in ipywidgets

Open stevejpurves opened this issue 1 year ago • 1 comments

Describe the bug

context When I do use any of the examples that have markdown cell output https://executablebooks.github.io/thebe/ipywidgets.html

expectation I expected markdown to be rendered

bug But instead I get plain text happens

problem This is a problem for people!

Reproduce the bug

run this and look at the output of the cookies example https://executablebooks.github.io/thebe/ipywidgets.html

List your environment

No response

stevejpurves avatar Mar 15 '24 11:03 stevejpurves

The issue stems from changes to the IRendermimeRegistry interface in jupyterlab.

Now this requires a separate markdown renderer, even to render markdown mimetype outputs and seems to be now inextricably linked with codemirror editor languages, even though it's a concern of output rendering for mimebundles.

We'll need to supply a markdown renderer of some form to the rendermime registry, using the marked renderer as-per jupyterlab will mean pulling in @juptyerlab/codemirror or building out a stub implementation of IEditorLanguageRegistry :( . Probably it's better to consider a different/better parser and use that? maybe with the need to wrap it, potentially we can just use mystjs here cc @rowanc1?

stevejpurves avatar Mar 15 '24 12:03 stevejpurves