File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import { selectAll } from 'unist-util-select';
2121
2222import { PromiseDelegate } from '@lumino/coreutils' ;
2323import { JupyterCellProvider } from './JupyterCellProvider' ;
24- import { IRenderMimeRegistry } from '@jupyterlab/rendermime' ;
2524
2625import { ObservableValue } from '@jupyterlab/observables' ;
2726
@@ -31,14 +30,6 @@ export class MySTMarkdownCell
3130{
3231 private _doneRendering = new PromiseDelegate < void > ( ) ;
3332
34- private __rendermime : IRenderMimeRegistry ;
35-
36- constructor ( options : MarkdownCell . IOptions ) {
37- super ( options ) ;
38-
39- this . __rendermime = options . rendermime ;
40- }
41-
4233 myst : {
4334 pre ?: GenericParent ;
4435 post ?: GenericParent ;
@@ -107,8 +98,8 @@ export class MySTMarkdownCell
10798 < ThemeProvider
10899 theme = { Theme . light }
109100 Link = { linkFactory (
110- this . __rendermime . resolver ,
111- this . __rendermime . linkHandler
101+ notebook . rendermime . resolver ,
102+ notebook . rendermime . linkHandler
112103 ) }
113104 renderers = { renderers }
114105 >
Original file line number Diff line number Diff line change @@ -56,10 +56,7 @@ export function markdownParse(text: string): Root {
5656 return mdast as Root ;
5757}
5858
59-
60- export function renderNotebook (
61- notebook : StaticNotebook
62- ) : undefined | Promise < void > {
59+ export function renderNotebook ( notebook : StaticNotebook ) : Promise < void > {
6360 const cells = getCellList ( notebook ) ?. filter (
6461 // In the future, we may want to process the code cells as well, but not now
6562 cell => cell . model . type === 'markdown'
You can’t perform that action at this time.
0 commit comments