Skip to content

[Suggestion] Add latex inline math highlighting $formula$ #321

Open
@RaitaroH

Description

I have played with this a bit and this works as expected.

Add here:

call SyntaxRange#Include('\$[^$]', '\$', 'tex')

I also opened a PR but this thing in particular may cause issues. I did not notice anything in particular though.

Also I wondered if it possible to both: completely conceal \begin and \end while keeping the contents properly rendered and concealed where possible. So for example:

\begin{equation}
\begin{aligned}
	&\Delta P = 3 * R * I^2\\
	&S = \sqrt{3} * U * I\\
	&\implies \Delta P = 3R\frac{S^2}{3U^2} = R\frac{S^2}{U^2} = R\frac{P^2 + Q^2}{U^2}
\end{aligned}
\end{equation}

Should end up:

	&Δ P = 3 * R * I²\\
	&S = \sqrt{3} * U * I\\
	&⇒ Δ P = 3R\frac{S²}{3U²} = R\frac{S²}{U²} = R\frac{P² + Q²}{U²}

Also not sure why \sqrt is not rendered as . Another example of this is \downdownarrows but that is most likely in just a few fonts such as nerd fonts:  

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions