File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -963,7 +963,9 @@ export function mdFromContentCell(
963
963
const contentCellEnvelope = createCellEnvelope ( [ "cell" , "markdown" ] , options ) ;
964
964
965
965
// clone source for manipulation
966
- const source = ld . cloneDeep ( cell . source ) as string [ ] ;
966
+ const source = typeof cell . source === "string"
967
+ ? [ cell . source ]
968
+ : [ ...cell . source ] ;
967
969
968
970
// handle user expressions (if any)
969
971
if ( options && source ) {
@@ -1461,7 +1463,9 @@ async function mdFromCodeCell(
1461
1463
}
1462
1464
}
1463
1465
md . push ( "}\n" ) ;
1464
- let source = ld . cloneDeep ( cell . source ) ;
1466
+ let source = typeof cell . source === "string"
1467
+ ? [ cell . source ]
1468
+ : [ ...cell . source ] ;
1465
1469
if ( fenced ) {
1466
1470
const optionsSource = cell . optionsSource . filter ( ( line ) =>
1467
1471
line . search ( / \| \s + e c h o : \s + f e n c e d \s * $ / ) === - 1
You can’t perform that action at this time.
0 commit comments