Source File
delimiters.go
Belonging Package
github.com/d2lang/mathjax-go/internal/tex
// Copyright 2017-2022 The MathJax Consortium// SPDX-License-Identifier: Apache-2.0// This file is a Go translation and modification of MathJax 3.2.2.// Source: ts/input/tex/TexParser.ts and the active delimiter SymbolMaps.package tex// Delimiter readers use exact source keys: / differs from \/, and | differs// from \|. Ordinary command lookup has its own dispatch policy.func lookupDelimiter( string) (string, bool) {for := len(mjSourceMaps) - 1; >= 0; -- {:= mjSourceMaps[]if .Kind != mjSourceDelimiterMap {continue}switch .Name {case "delimiter", "AMSmath-delimiter", "AMSsymbols-delimiter", "mathtools-delimiters":default:continue}for := len(.Entries) - 1; >= 0; -- {:= .Entries[]if .Name == {, , := sourceSymbolValue(.Value)return ,}}}return "", false}
![]() |
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. |