(children: MarkdownNode[])
| 352 | } |
| 353 | |
| 354 | const getChildrenText = (children: MarkdownNode[]): string => { |
| 355 | return children.map(nodeToPlainText).join('') |
| 356 | } |
| 357 | |
| 358 | const nodeToPlainText = (node: MarkdownNode): string => { |
| 359 | switch (node.type) { |