(node: Element)
| 320 | } |
| 321 | |
| 322 | function hasCodeChild(node: Element): boolean { |
| 323 | return node.children.some((c) => c.type === 'element' && c.tagName === 'code') |
| 324 | } |
| 325 | |
| 326 | function wrapCodeBlock(pre: Element): Element { |
| 327 | const code = pre.children.find((c) => c.type === 'element' && c.tagName === 'code') as |