File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,8 @@ export class DeepnoteDataConverter {
236236 for ( const item of output . items ) {
237237 if ( item . mime === 'text/plain' ) {
238238 data [ 'text/plain' ] = new TextDecoder ( ) . decode ( item . data ) ;
239+ } else if ( item . mime === 'text/markdown' ) {
240+ data [ 'text/markdown' ] = new TextDecoder ( ) . decode ( item . data ) ;
239241 } else if ( item . mime === 'text/html' ) {
240242 data [ 'text/html' ] = new TextDecoder ( ) . decode ( item . data ) ;
241243 } else if ( item . mime === 'application/json' ) {
@@ -392,6 +394,10 @@ export class DeepnoteDataConverter {
392394 ) ;
393395 }
394396
397+ if ( data [ 'text/markdown' ] ) {
398+ items . push ( NotebookCellOutputItem . text ( data [ 'text/markdown' ] as string , 'text/markdown' ) ) ;
399+ }
400+
395401 if ( data [ 'text/plain' ] ) {
396402 let mimeType = 'text/plain' ;
397403 // deepnote-toolkit returns the text/plain mime type for big number outputs
You can’t perform that action at this time.
0 commit comments