Source File
rule.go
Belonging Package
github.com/d2lang/mathjax-go/internal/tex
// 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 teximportfunc ( *parser) ( string) ([]*mml.Node, error) {:= node("mspace")for , := range []string{"width", "height", "depth"} {, := .readDimension()if != nil {return nil,}.Attributes.Set(, )}if != "Space" {:= .activeColorif == "" {= "black"}.Attributes.Set("mathbackground", )}return []*mml.Node{}, nil}
![]() |
The pages are generated with Golds v0.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. |