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

Function textopts

static/word2md/mammoth.browser.js:26580–26584  ·  view source on GitHub ↗
(opt, text)

Source from the content-addressed store, hash-verified

26578 }
26579
26580 function textopts (opt, text) {
26581 if (opt.trim) text = text.trim()
26582 if (opt.normalize) text = text.replace(/\s+/g, ' ')
26583 return text
26584 }
26585
26586 function error (parser, er) {
26587 closeText(parser)

Callers 2

closeTextFunction · 0.70
writeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected