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

Function elementToHtml

static/word2md/mammoth.browser.js:201–211  ·  view source on GitHub ↗
(element, messages, options)

Source from the content-addressed store, hash-verified

199 }
200
201 function elementToHtml(element, messages, options) {
202 if (!options) {
203 throw new Error("options not set");
204 }
205 var handler = elementConverters[element.type];
206 if (handler) {
207 return handler(element, messages, options);
208 } else {
209 return [];
210 }
211 }
212
213 function convertParagraph(element, messages, options) {
214 return htmlPathForParagraph(element, messages).wrap(function() {

Callers 2

convertToHtmlFunction · 0.70
convertElementsFunction · 0.70

Calls 1

handlerFunction · 0.70

Tested by

no test coverage detected