Environment
- os:
Ubuntu 24
- node:
v24.17.0
- pm:
pnpm@11.9.0
- framework:
Agnostic
Comark Version
v0.5.0
Reproduction
import { parse } from 'comark'
import { renderMarkdown } from 'comark/render'
await renderMarkdown({ frontmatter: {}, meta: {}, nodes: [['p', {}, ['del', {}, ['code', {}, 'x']]]] })
// actual: '~~x~~'
// expected: '~~`x`~~'
await renderMarkdown({ frontmatter: {}, meta: {}, nodes: [['p', {}, ['em', {}, ['code', {}, 'x']]]] })
// '*`x`*' ← em>code is correct
await renderMarkdown(await parse('~~`x`~~'))
// '~~x~~'
Description
The del handler returns \${textContent(node)}`, flattening children instead of recursing — so nested inline nodes are lost. em` recurses and is fine.
I'll work on a PR as soon as I'm able to
Additional context
No response
Logs
Environment
Ubuntu 24v24.17.0pnpm@11.9.0AgnosticComark Version
v0.5.0
Reproduction
Description
The
delhandler returns\${textContent(node)}`, flattening children instead of recursing — so nested inline nodes are lost.em` recurses and is fine.I'll work on a PR as soon as I'm able to
Additional context
No response
Logs