mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-09 04:58:40 +00:00
Move "raisebox" into functions/raisebox.js. (#1331)
This commit is contained in:
committed by
Kevin Barabash
parent
ea7003ff6e
commit
35d6181a95
@@ -2,7 +2,6 @@
|
||||
/** Include this to ensure that all functions are defined. */
|
||||
import {
|
||||
default as _defineFunction,
|
||||
ordargument,
|
||||
_functions,
|
||||
} from "./defineFunction";
|
||||
|
||||
@@ -124,20 +123,7 @@ import "./functions/cr";
|
||||
import "./functions/environment";
|
||||
|
||||
// Box manipulation
|
||||
defineFunction("raisebox", ["\\raisebox"], {
|
||||
numArgs: 2,
|
||||
argTypes: ["size", "text"],
|
||||
allowedInText: true,
|
||||
}, function(context, args) {
|
||||
const amount = args[0];
|
||||
const body = args[1];
|
||||
return {
|
||||
type: "raisebox",
|
||||
dy: amount,
|
||||
body: body,
|
||||
value: ordargument(body),
|
||||
};
|
||||
});
|
||||
import "./functions/raisebox";
|
||||
|
||||
import "./functions/verb";
|
||||
|
||||
|
Reference in New Issue
Block a user