waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

[Bug]: Any markdown code block generated by Wave AI Chat client breaks the formatting of the chat following the code block.

Open xbais opened this issue 3 months ago • 13 comments

Current Behavior

Seems like the chats are generated as markdown which is then rendered. As a result, if the generated markdown code for the chat itself contains a markdown code block, the block breaks the formatting of the chat content following the markdown code block.

Expected Behavior

The markdown code block shouldn't affect the formatting of the rest of the generated chat.

Steps To Reproduce

  1. Open Wave AI chat window in Waveterm
  2. Type this prompt : "Give me the code for a sample markdown document."
  3. Analyse the formatting of the generated chat specially at the end

Wave Version

v0.8.13

OS

Ubuntu 24.04.1

Architecture

x64

Anything else?

Seems like the markdown-renderer function needs to be made more robust.

Questionnaire

  • [X] I'm interested in fixing this myself but don't know where to start
  • [ ] I would like to fix and I have a solution
  • [ ] I don't have time to fix this right now, but maybe later

xbais avatar Oct 26 '24 14:10 xbais