MCPcopy Index your code
hub / github.com/marijnh/Eloquent-JavaScript / tokenText

Function tokenText

src/transform.mjs:26–30  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

24}
25
26function tokenText(token) {
27 if (token.type == "text" || token.type == "code_inline") return token.content
28 else if (token.type == "softbreak") return " "
29 else return ""
30}
31
32function smartQuotes(tokens, i, tex, moveQuotes) {
33 let text = tokens[i].content, from = 0

Callers 1

smartQuotesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected