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

Function convertXmlToDocument

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

Source from the content-addressed store, hash-verified

1506 var bodyReader = options.bodyReader;
1507
1508 function convertXmlToDocument(element) {
1509 var body = element.first("w:body");
1510
1511 var result = bodyReader.readXmlElements(body.children)
1512 .map(function(children) {
1513 return new documents.Document(children, {
1514 notes: options.notes,
1515 comments: options.comments
1516 });
1517 });
1518 return new Result(result.value, result.messages);
1519 }
1520
1521 return {
1522 convertXmlToDocument: convertXmlToDocument

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected