waveterm
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.
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
- Open Wave AI chat window in Waveterm
- Type this prompt : "Give me the code for a sample markdown document."
- 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