Open hzoou opened 1 year ago
Can't we just close the code block, since that's how it is supposed to work?
@anshgoyalevil -- this is a serious issue if you are streaming a response and progressively rendering it via <Markdown>
. While a code block is not yet terminated, it gets rendered directly as HTML in the DOM, breaking things (and probably potentially executing JS?).
Surely this should be considered a bug and should be fixed.
Even if the code block wasn't closed, I expected there would be a code block as long as it opened.
but ... Unfortunately, it is exposed only in pure text. Can this bug be solved?