chatgpt-web
chatgpt-web copied to clipboard
Suggestion: render LaTeX equations + theme color
Hi, I really like this project and I have several suggestions:
-
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?
-
Is it possible to add a button to change the default background color between white and black?
Thanks!
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.
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 if you can make it into a PR (maybe optionally select at compile-time), that would be nice though.
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?
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.