// Copyright (c) 2009-2022 The MathJax Consortium // SPDX-License-Identifier: Apache-2.0 // Source: base/BaseMethods.ts Rule, color/ColorMethods.ts, and ArrayItem.copyEnv.
package tex import func ( *parser) ( string) ([]*mml.Node, error) { := node("mspace") for , := range []string{"width", "height", "depth"} { , := .readDimension() if != nil { return nil, } .Attributes.Set(, ) } if != "Space" { := .activeColor if == "" { = "black" } .Attributes.Set("mathbackground", ) } return []*mml.Node{}, nil }