chetachiezikeuzor / Highlightr-Plugin

A minimal and aesthetically pleasing highlighting menu that makes color-coded highlighting much easier 🎨.
Mozilla Public License 2.0
585 stars 32 forks source link

Latex doesn't work within highlight #53

Open charlielam0615 opened 1 year ago

charlielam0615 commented 1 year ago

Hi Chetachi! Thanks for this wonderful plugin! I wonder is there any way to make latex rendering works properly within the highlight css block?

For example, Before image With Highlight image

Thanks!

monkeyemperor12 commented 2 months ago

Hey, I just realized that LATEX has built-in color commands that do work. i.e. for your example:

\$\color{red}{\text{A complete orthonormal set} {e_i}(i=1,2,...) \text{in a Hilbert Space} V \text{is called a basis of} V}$.

I think we were looking for the same LATEX coloring feature...

I'll leave it to you to figure out the spacing... Have fun with Hilbert Spaces :)