Source File
fix_prescripts.go
Belonging Package
github.com/d2lang/mathjax-go/internal/tex
// Copyright (c) 2020-2022 MathJax Consortium// SPDX-License-Identifier: Apache-2.0// Source: ts/input/tex/mathtools/MathtoolsConfiguration.ts, fixPrescripts.package teximportfunc fixPrescripts( *mml.Node) {.Walk(func( *mml.Node) bool {if .Kind != "mmultiscripts" {return true}if , := .Property("fixPrescript"); !limitsTruthy() {return true}:= append([]*mml.Node(nil), .Children...):= 0for , := range []int{1, 2} {if [] == nil {[] = node("none")++}}for , := range []int{4, 5} {:= []if .Kind == "mrow" && len(.Children) == 0 {[] = node("none")}}if == 2 {= append([:1], [3:]...)}.SetChildren()refreshDynamicFlags()return true})}
![]() |
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. |