mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 03:38:39 +00:00
Add optional arguments to \sqrt
Summary: Use the TeX definitions of `\root` to get the optional `\sqrt` argument in the right place. Also add the MathML version. Fixes #48 Test Plan: - `make test` - See that the images look good Reviewers: kevinb, alpert Reviewed By: alpert Differential Revision: https://phabricator.khanacademy.org/D17236
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
@import "fonts.less";
|
||||
|
||||
// The mu unit is defined as 1/18 em
|
||||
@mu: 1.0/18.0em;
|
||||
|
||||
.katex-display {
|
||||
display: block;
|
||||
margin: 1em 0;
|
||||
@@ -359,6 +362,13 @@
|
||||
margin-top: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
> .root {
|
||||
// These values are taken from the definition of `\r@@t`,
|
||||
// `\mkern 5mu` and `\mkern -10mu`.
|
||||
margin-left: 5*@mu;
|
||||
margin-right: -10*@mu;
|
||||
}
|
||||
}
|
||||
|
||||
.sizing, .fontsize-ensurer {
|
||||
|
Reference in New Issue
Block a user