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

Function DocumentConverter

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

Source from the content-addressed store, hash-verified

124
125
126function DocumentConverter(options) {
127 return {
128 convertToHtml: function(element) {
129 var comments = _.indexBy(
130 element.type === documents.types.document ? element.comments : [],
131 "commentId"
132 );
133 var conversion = new DocumentConversion(options, comments);
134 return conversion.convertToHtml(element);
135 }
136 };
137}
138
139function DocumentConversion(options, comments) {
140 var noteNumber = 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected