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

Function DocumentXmlReader

static/word2md/mammoth.browser.js:1505–1524  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

1503
1504
1505function DocumentXmlReader(options) {
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
1523 };
1524}
1525
1526},{"../documents":4,"../results":24}],9:[function(require,module,exports){
1527exports.read = read;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected