( children: MarkdownNode[], state: RenderState, parentType: MarkdownNode['type'], )
| 462 | } |
| 463 | |
| 464 | const renderNodes = ( |
| 465 | children: MarkdownNode[], |
| 466 | state: RenderState, |
| 467 | parentType: MarkdownNode['type'], |
| 468 | ): ReactNode[] => { |
| 469 | const results: ReactNode[] = [] |
| 470 | for (let index = 0; index < children.length; index += 1) { |
| 471 | const child = children[index] |
| 472 | const nextSibling = children[index + 1] as MarkdownNode | undefined |
| 473 | results.push(...renderNode(child, state, parentType, nextSibling)) |
| 474 | } |
| 475 | return results |
| 476 | } |
| 477 | |
| 478 | const renderCodeBlock = (code: Code, state: RenderState): ReactNode[] => { |
| 479 | const { palette, nextKey } = state |
no test coverage detected