mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-22 10:58:40 +00:00
Rename .value to .text or .color where applicable. (#1606)
* Update comment for defineFunction handler. * Rename .value to .text in all token-style ParseNodes. * Rename symbolNode's .value to .text. * Rename color-token's .value to .color.
This commit is contained in:
@@ -104,13 +104,8 @@ type FunctionDefSpec<NODETYPE: NodeType> = {|
|
||||
// Properties that control how the functions are parsed.
|
||||
props: FunctionPropSpec,
|
||||
|
||||
// The handler is called to handle these functions and their arguments.
|
||||
// The function should return an object with the following keys:
|
||||
// - type: The type of element that this is. This is then used in
|
||||
// buildHTML/buildMathML to determine which function
|
||||
// should be called to build this node into a DOM node
|
||||
// Any other data can be added to the object, which will be passed
|
||||
// in to the function in buildHTML/buildMathML as `group.value`.
|
||||
// The handler is called to handle these functions and their arguments and
|
||||
// returns a `ParseNode`.
|
||||
handler: ?FunctionHandler<NODETYPE>,
|
||||
|
||||
// This function returns an object representing the DOM structure to be
|
||||
|
Reference in New Issue
Block a user