Closed pmeinhardt closed 2 years ago
Update: I've looked into converting expand
ADF nodes into <details>
+ <summary>
in the MDAST/Markdown output. MDAST HTML nodes only accept content as a plain string and no nested nodes. This means either:
expand
ADF node would have to be converted to plain HTML and stringified. We would need to apply this package itself in combination with other MDAST/HAST packages to the child nodes (see this example). This does not seem like a desirable approach to me, mostly for complexity reasons and the necessity to pull in more dependencies (likely to conflict with packages in scenarios where mdast-util-from-adf
is supposed to be used). 😬 expand
. When subsequently converting this yields the desired result – however with an unsolved problem: 🪃
<details>
<summary>
+ expand
title + </summary>
expand
would have to be attached with a single root, a "transparent" node which does not exist at the moment)</details>
expand
and continue processing its children instead. This means the ADF expand
will not be represented in the MDAST output, but its children/content will. 🧽
See this issue on Tickety Tick for additional context and examples.