The chat message support formula rendering, and code block (copy) functions

The idea is:

The front-end rendering capability of chat message cannot support formula rendering, and code blocks do not support copying and pasting

My use case:

I think it would be beneficial to add this because:

  1. You can quickly copy the generated code
  2. You can view complex mathematical formulas generated by AI
  3. Better output rendering effect

Any resources to support this?

Are you willing to work on this?

There is a lot of work to do now

  1. Chat dialogues in the /chat path also need to be supported
  2. Dark mode adaptation
  3. Dynamic css3 vars variable adaptation

The rendering of the complex formula is as follows

The screenshots of code block rendering and copying functions are as follows


Current style

Code block copying is not supported,And the UI style is a bit unsightly

Does not support complex mathematical formulas

Does anyone need this feature? Please vote to let me know