lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: collapsible container is not being exported faithfully to markdown/html

Open vadimkantorov opened this issue 1 year ago • 1 comments

For some blocks, peppering markdown with some html is required or desirable to preserve semantics or visuals.

E.g. for collapsible container: image

currently is exported as image

How it is typically done in markdown documents on GitHub:

<details><summary>
hello
</summary>

world
</details>

Rendered:

hello

world


Without HTML, it could at least be exported as:

**hello**
---
world

In general, it is important in many practical usecases to at least optionally (behind some option) add some minimal HTML tags to preserve semantics during Markdown export. E.g. for image/text centering as we discussed in:

  • https://github.com/facebook/lexical/issues/6325#issuecomment-2184220501

vadimkantorov avatar Jun 27 '24 14:06 vadimkantorov

Maybe this issue is duplicate of:

  • https://github.com/facebook/lexical/issues/4355

The advantage of this dup is that it has some playground screenshots :)

vadimkantorov avatar Feb 16 '25 23:02 vadimkantorov