Source File
spec.go
Belonging Package
github.com/d2lang/mathjax-go/internal/tex/extensions/spec
// Copyright (c) 2017-2022 The MathJax Consortium// SPDX-License-Identifier: Apache-2.0// Go registration model derived from MathJax 3.2.2's TeX configurations.// Package spec defines dependency-free TeX extension registration data.// Extension packages depend only on this package and the standard library;// the core TeX parser can therefore import them without an import cycle.package spec// Package describes one MathJax TeX package and its single source symbol map.// Entries in every slice retain their order in the MathJax 3.2.2 source.type Package struct {Name stringMacroMap stringCommands []CommandSymbols []SymbolOptions []OptionAllowedOptions []string}// Command is one CommandMap entry. Handler names the extension operation;// Arguments contains the fixed trailing arguments from an array-valued source// entry, such as cancel's notation.type Command struct {Name stringHandler stringArguments []string}// Symbol is one CharacterMap entry and the token recipe its map handler uses.type Symbol struct {Name stringCharacter stringTokenKind stringAttributes []Attribute}// Attribute is an ordered token or node attribute.type Attribute struct {Name stringValue string}// Option is one package option and its source default value.type Option struct {Name stringValue string}
![]() |
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. |