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

Function findHtmlPathForRunProperty

static/word2md/mammoth.browser.js:279–288  ·  view source on GitHub ↗
(elementType, defaultTagName)

Source from the content-addressed store, hash-verified

277 }
278
279 function findHtmlPathForRunProperty(elementType, defaultTagName) {
280 var path = findHtmlPath({type: elementType});
281 if (path) {
282 return path;
283 } else if (defaultTagName) {
284 return htmlPaths.element(defaultTagName, {}, {fresh: false});
285 } else {
286 return htmlPaths.empty;
287 }
288 }
289
290 function findHtmlPath(element, defaultPath) {
291 var style = findStyle(element);

Callers 1

convertRunFunction · 0.70

Calls 1

findHtmlPathFunction · 0.70

Tested by

no test coverage detected