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

Function closeText

static/word2md/mammoth.browser.js:26574–26578  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

26572 }
26573
26574 function closeText (parser) {
26575 parser.textNode = textopts(parser.opt, parser.textNode)
26576 if (parser.textNode) emit(parser, 'ontext', parser.textNode)
26577 parser.textNode = ''
26578 }
26579
26580 function textopts (opt, text) {
26581 if (opt.trim) text = text.trim()

Callers 5

checkBufferLengthFunction · 0.70
flushBuffersFunction · 0.70
emitNodeFunction · 0.70
errorFunction · 0.70
endFunction · 0.70

Calls 2

textoptsFunction · 0.70
emitFunction · 0.70

Tested by

no test coverage detected