Source File
math_token_space.go
Belonging Package
github.com/d2lang/mathjax-go/internal/tex
// Copyright 2017-2022 The MathJax Consortium// SPDX-License-Identifier: Apache-2.0package tex// TexParser.Parse dispatches characters without a whitespace lookahead.// Only these five BaseMappings entries call the no-op BaseMethods.Space.// Keep token delivery distinct from GetNext's JavaScript whitespace set.func isMathTokenSpace( rune) bool {switch {case ' ', '\t', '\r', '\n', '\u00a0':return true}return false}func ( *parser) () {for .pos < len(.source) && isMathTokenSpace(.peekRune()) {.consumeRune()}}
![]() |
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. |