Support xcolor-style RGB \color and \textcolor
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 20.4k
- Forks
- 1.3k
- Avg merge
- 14h 37m
- Merged PRs (30d)
- 7
Description
I'm using pandoc to generate both HTML+KaTeX and LaTeX form the same source.
This is a problem since KaTeX treats colors differently.
This is magenta in LaTeX + xcolor:
\color[RGB]{255,0,255}
\textcolor[RGB]{255,0,255}
This is magenta in KaTeX:
\color{#FF00FF}
\textcolor{#FF00FF}
Is it possible to add support for the shown LaTeX syntax in KaTeX?
This may sidestep the need for #750
Contributor guide
Assessment
This issue has not been assessed yet.