mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 05:58:40 +00:00
Add a \color command for custom colors
Summary: Keep track of the color inside the style now, and use that when we are rendering things. Added a custom lexing mode to handle lexing colors correctly. Prefixed the old katex colors (internally) with "katex-" to distinguish them from CSS colors. Test Plan: - Run the normal tests, see they work - Run the huxley tests, see that they didn't change except for the color one which looks right Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D7763
This commit is contained in:
@@ -288,14 +288,6 @@ big parens
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.blue { color: #6495ed; }
|
||||
.orange { color: #ffa500; }
|
||||
.pink { color: #ff00af; }
|
||||
.red { color: #df0030; }
|
||||
.green { color: #28ae7b; }
|
||||
.gray { color: gray; }
|
||||
.purple { color: #9d38bd; }
|
||||
|
||||
.katex-logo {
|
||||
.a {
|
||||
font-size: 0.75em;
|
||||
|
Reference in New Issue
Block a user