quantizor / markdown-to-jsx

🏭 The most lightweight, customizable React markdown component.
https://markdown-to-jsx.quantizor.dev/
MIT License
1.96k stars 169 forks source link

follow up on #520 #574

Open joehe00 opened 4 months ago

joehe00 commented 4 months ago

The fix resolved the issue in #520 but not below test:

    render(compiler(`<div>
    <div><div></div></div>
    </div>`))                 

=======================================

<div><div><div></div><div></div></div><pre><code>&lt;/div&gt;</code></pre></div>

  it('', () => {
    render(compiler(`<div>
    <div><div></div></div>
    </div>`))

    expect(root.innerHTML).toMatchInlineSnapshot(`
      <div>
        <div>
          <div>
          </div>
        </div>
      </div>
    `)
  })
quantizor commented 4 months ago

Thank you, going to pick this up after v8's first beta is available. Focusing my off time dev hours on that at the moment. If you want to look into it in the meantime, ideas welcome!