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

Function extractRawText

static/word2md/mammoth.browser.js:2424–2430  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

2422
2423
2424function extractRawText(input) {
2425 return unzip.openZip(input)
2426 .then(docxReader.read)
2427 .then(function(documentResult) {
2428 return documentResult.map(convertElementToRawText);
2429 });
2430}
2431
2432function convertElementToRawText(element) {
2433 if (element.type === "text") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected