vscode-markdown-editor icon indicating copy to clipboard operation
vscode-markdown-editor copied to clipboard

Bug: multiplying existing HTML code endlessly

Open abdessalaam opened this issue 1 year ago • 0 comments

Hello. I have some footnotes at the bottom of my markdown (it's prepared for webview):

<small id="footnotes">

1. Their equivalent names in the Biblical sources are usually thought to be, following the list order: Adam, Enoch, Noah, Eber, (–), Abraham, Lot, Ishmael, Isaac, Jacob, Joseph, Job, Jethro, Moses, Aaron, (debated), Jonah, David, Solomon, Elijah, Elisha, Zechariah, John (the Baptist), Jesus; and their leader is Muhammad<
2. Narrated by Al-Bukhari, 3443; Muslim, 2365
3. Read more on islamqa.info <a href="https://islamqa.info/en/answers/13957/why-do-we-need-prophets#why-do-we-need-prophets">(Why do we need prophets?)</a>

Edited on 23/12/2024
</small>

Bug

Every time I open the file with markdown editor, and make any edits, it multiplies the html code exponentially – it grows very quickly, and in a random way, e.g. :

1. <small id="footnotes"><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><small id="footnotes"></code></span>Their equivalent names in the Biblical sources are usually thought to be, following the list order: Adam, Enoch, Noah, Eber, (–), Abraham, Lot, Ishmael, Isaac, Jacob, Joseph, Job, Jethro, Moses, Aaron, (debated), Jonah, David, Solomon, Elijah, Elisha, Zechariah, John (the Baptist), Jesus; and their leader is Muhammad<span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></small></code></span></small>
2. <small id="footnotes"><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><small id="footnotes"></code></span>Narrated by Al-Bukhari, 3443; Muslim, 2365<span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></small></code></span></small>
3. <small id="footnotes"><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><small id="footnotes"></code></span>Read more on islamqa.info <span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><span data-type="html-inline" class="vditor-ir__node"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><code class="vditor-ir__marker"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><a href="https://islamqa.info/en/answers/13957/why-do-we-need-prophets#why-do-we-need-prophets"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></code></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></span></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><span data-type="html-inline" class="vditor-ir__node"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><code class="vditor-ir__marker"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><em></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></code></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></span></code></span>(Why do we need prophets?)<span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><span data-type="html-inline" class="vditor-ir__node"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><code class="vditor-ir__marker"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></em></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></code></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></span></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><span data-type="html-inline" class="vditor-ir__node"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><code class="vditor-ir__marker"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></a></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></code></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></span></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></small></code></span></small>

<small id="footnotes"><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><small id="footnotes"></code></span>Edited on 23/12/2024
<span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><span data-type="html-inline" class="vditor-ir__node"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"><code class="vditor-ir__marker"></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></small></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></code></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></span></code></span><span data-type="html-inline" class="vditor-ir__node"><code class="vditor-ir__marker"></small></code></span></small>

It can grow quickly to a couple of hundred of lines of random code.

I would appreciate your help with fixing this issue. Thank you.

abdessalaam avatar Dec 28 '24 12:12 abdessalaam