mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-16 08:18:39 +00:00
@@ -75,7 +75,9 @@ defineFunction({
|
||||
let style = options.style;
|
||||
if (group.value.size === "display") {
|
||||
style = Style.DISPLAY;
|
||||
} else if (group.value.size === "text") {
|
||||
} else if (group.value.size === "text" &&
|
||||
style.size === Style.DISPLAY.size) {
|
||||
// We're in a \tfrac but incoming style is displaystyle, so:
|
||||
style = Style.TEXT;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user