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:
Emily Eisenberg
2014-03-27 12:34:45 -04:00
parent 7723d3dcaf
commit d729ba5281
8 changed files with 159 additions and 31 deletions

View File

@@ -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;