Skip to content

Commit

Permalink
🎨 add explicit error rendermine factory (#769)
Browse files Browse the repository at this point in the history
* 🎨 adding explicit errorRenderMime factory

* 📗changeset
  • Loading branch information
stevejpurves authored Sep 5, 2024
1 parent 68ba668 commit 3d82f84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-spiders-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'thebe-core': patch
---

Adding explicit rendermime factor for handling errors, follow an upstream change in lab 4.3
2 changes: 2 additions & 0 deletions packages/core/src/rendermime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
svgRendererFactory,
imageRendererFactory,
textRendererFactory,
errorRendererFactory,
} from '@jupyterlab/rendermime';
import type { MathjaxOptions } from './types';
import { MathJaxTypesetter } from '@jupyterlab/mathjax2';
Expand All @@ -22,6 +23,7 @@ const EXTENDED_FACTORIES = [
imageRendererFactory,
javascriptRendererFactory,
textRendererFactory,
errorRendererFactory,
];

let RENDERERS: IRenderMime.IRendererFactory[] | null = null;
Expand Down

0 comments on commit 3d82f84

Please sign in to comment.