I couldn’t find the root cause, does anybody has idea about it?
The implementation of code fence is here:
I couldn’t find the root cause, does anybody has idea about it?
The implementation of code fence is here:
I finally find something, it’s caused by HTML structure of the code block, if it’s:
<pre>
<code>
Code Snippets....
</code>
</pre>
Then it will trigger the bug. What I did is insert a div
after the code tag:
<pre>
<code>
<div>
Code Snippets....
</div>
</code>
</pre>
Then, it will work as expected.
@marijn Do you think it’s a browser bug or we need a little workaround for this in prosemirror?