# Rich text editor converts bbcode into display math

**URL:** <https://meta.discourse.org/t/rich-text-editor-converts-bbcode-into-display-math/396463>\
**Category:** Bug\
**Tags:** composer, markdown, math\
**Created:** [19 בפברואר,‏ 2026,‏ 2:49am UTC](https://meta.discourse.org/t/rich-text-editor-converts-bbcode-into-display-math/396463 "2026-02-19T02:49:27Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![panic](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@panic](https://meta.discourse.org/u/panic)\
**Post date:** [20 בפברואר,‏ 2026,‏ 3:40am UTC](https://meta.discourse.org/t/rich-text-editor-converts-bbcode-into-display-math/396463/6 "2026-02-20T03:40:14Z")

</div>

It seems that my system injects a \<pre\>\<code\> for the clipboard…

```plaintext
> arguments[0].clipboardData.getData('text/html')
'<pre><code class="lang-plaintext hljs language-plaintext" data-highlighted="yes">[details="summary"]
some text
[/details]
</code></pre>' 

```

Anyway, the main point is that what you see in the wysiwyg editor is not what you get.

---

_[View the full topic](https://meta.discourse.org/t/rich-text-editor-converts-bbcode-into-display-math/396463)._
