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

Function convertElementToRawText

static/word2md/mammoth.browser.js:2432–2439  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

2430}
2431
2432function convertElementToRawText(element) {
2433 if (element.type === "text") {
2434 return element.value;
2435 } else {
2436 var tail = element.type === "paragraph" ? "\n\n" : "";
2437 return (element.children || []).map(convertElementToRawText).join("") + tail;
2438 }
2439}
2440
2441function embedStyleMap(input, styleMap) {
2442 return unzip.openZip(input)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected