mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-09 21:18:40 +00:00
Make \rules work in script and scriptscript sizes
Auditors: alpert
This commit is contained in:
@@ -713,6 +713,9 @@ var groupTypes = {
|
|||||||
height *= fontMetrics.metrics.xHeight;
|
height *= fontMetrics.metrics.xHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
width /= options.style.sizeMultiplier;
|
||||||
|
height /= options.style.sizeMultiplier;
|
||||||
|
|
||||||
// Style the rule to the right size
|
// Style the rule to the right size
|
||||||
rule.style.borderRightWidth = width + "em";
|
rule.style.borderRightWidth = width + "em";
|
||||||
rule.style.borderTopWidth = height + "em";
|
rule.style.borderTopWidth = height + "em";
|
||||||
|
Reference in New Issue
Block a user