File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,14 @@ import { NodeRenderer } from '@myst-theme/providers';
33import type { ListItem } from 'myst-spec-ext' ;
44import { useTaskItemController } from './TaskItemControllerProvider' ;
55import { MyST } from 'myst-to-react' ;
6- import { GenericNode } from 'myst-common' ;
76
87function TaskItem ( {
98 checked,
109 line,
1110 children
1211} : {
1312 checked ?: boolean ;
14- children : GenericNode [ ] ;
13+ children : React . ReactNode ;
1514 line ?: number ;
1615} ) {
1716 // The rendering waiting on promises from Jupyter is slow
@@ -32,7 +31,7 @@ function TaskItem({
3231 setLocal ( ! local ) ;
3332 } }
3433 />
35- < MyST ast = { children } />
34+ { children }
3635 </ li >
3736 ) ;
3837}
@@ -53,7 +52,7 @@ export const listItem: NodeRenderer<ListItem & { checked?: boolean }> = ({
5352 checked = { node . checked }
5453 line = { node . position ?. start . line }
5554 >
56- { node . children }
55+ < MyST ast = { node . children } />
5756 </ TaskItem >
5857 ) ;
5958} ;
You can’t perform that action at this time.
0 commit comments