// Copyright (c) 2020-2022 MathJax Consortium// SPDX-License-Identifier: Apache-2.0// Sources: ts/input/tex/mathtools/MathtoolsMethods.ts (MtLap), ParseUtil.ts.package teximportfunc ( *parser) ( string) ([]*mml.Node, error) {// GetArgument starts with GetNext's JavaScript whitespace. This boundary // is separate from the whitespace interpreted inside the captured text.for .pos < len(.source) && internalTextSpace(.peekRune()) { .consumeRune() } , , := .readArgumentAtCursor(, false)if != nil {returnnil, } , := .internalMath(, "", true)if != nil {returnnil, } := setAttributes(node("mpadded", ...), map[string]any{"width": 0})switch {case"textllap": .Attributes.Set("lspace", "-1width")case"clap", "textclap": .Attributes.Set("lspace", "-.5width") }// MtLap pushes the padded box itself, unlike the mathematical Lap // handlers, which add a TeXAtom.return []*mml.Node{}, nil}
The pages are generated with Goldsv0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.