filament-tiptap-editor
filament-tiptap-editor copied to clipboard
Adding a code block adds extra `</pre>` and `</code>` tags
Filament Version
v3.2.75
Plugin Version
v3.3.3
PHP Version
PHP 8.1
Problem description
When I add a code block to the editor with some random code or text, and save it, the resultant HTML has two extra </pre>
and </code>
tags.
For example, writing this:
Gets stores like this in my database:
<pre><code class="hljs javascript"><span class="hljs-keyword">const</span> a = <span class="hljs-number">123</span>;</code></pre></code></pre>
Expected behavior
That the output would contain just one set of closing tags, not two.
Steps to reproduce
- Try creating an
Article
and add some text to it, and save it. - Inspect the stored output.
Reproduction repository
https://github.com/AngadSethi/tiptap-editor-replicate-error
Relevant log output
No response