MCPcopy Create free account
hub / github.com/TruthHun/BookStack / consumeSpaces

Method consumeSpaces

static/katex/katex.mjs:13909–13919  ·  view source on GitHub ↗

* Consume all following space tokens, without expansion.

()

Source from the content-addressed store, hash-verified

13907
13908
13909 consumeSpaces() {
13910 for (;;) {
13911 const token = this.future();
13912
13913 if (token.text === " ") {
13914 this.stack.pop();
13915 } else {
13916 break;
13917 }
13918 }
13919 }
13920 /**
13921 * Consume the specified number of arguments from the token stream,
13922 * and return the resulting array of arguments.

Callers 1

consumeArgsMethod · 0.95

Calls 1

futureMethod · 0.95

Tested by

no test coverage detected