chatgpt-web icon indicating copy to clipboard operation
chatgpt-web copied to clipboard

Suggestion: render LaTeX equations + theme color

Open yanglyu902 opened this issue 1 year ago • 5 comments

Hi, I really like this project and I have several suggestions:

  1. Is it possible to support latex rendering in the browser? For example, equations like $H^2 = \frac{8\pi G}{3}\rho - \frac{k}{a^2} + \frac{\Lambda}{3}$ could be displayed in a much more elegant way. I noticed this equation can be rendered on GitHub due to "Styling with Markdown is supported"; maybe that's the easiest option for implementation?

  2. Is it possible to add a button to change the default background color between white and black?

Thanks!

yanglyu902 avatar Mar 19 '23 02:03 yanglyu902

For LaTeX support, we could use https://www.npmjs.com/package/marked-katex-extension - but it adds quite a heavy dependency, and I'm not sure that many people will use it. Dark and light mode can be switched by changing your OS theme setting.

Niek avatar Mar 20 '23 10:03 Niek

I just managed to integrate marked-katex-extension into my forked copy, and it indeed takes ~5 seconds to load the browser page each time after running npm run dev; everything runs smoothly after that. Maybe I can just keep using my own version then.

yanglyu902 avatar Mar 23 '23 07:03 yanglyu902

@yanglyu902 if you can make it into a PR (maybe optionally select at compile-time), that would be nice though.

Niek avatar Mar 23 '23 13:03 Niek

I use LaTeX equations all the time, that's actually the most important feature that is still missing for my use case. I would love if that could be implemented somehow?

gui110Dev avatar Dec 06 '23 04:12 gui110Dev

any progress on this subject? I'd like to have this feature as well, impossible to get deeply intensive in mathematical calculations without proper rendering.

Yarden92 avatar Sep 23 '24 15:09 Yarden92