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

Function htmlPathForBreak

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

Source from the content-addressed store, hash-verified

444 }
445
446 function htmlPathForBreak(element) {
447 var style = findStyle(element);
448 if (style) {
449 return style.to;
450 } else if (element.breakType === "line") {
451 return htmlPaths.topLevelElement("br");
452 } else {
453 return htmlPaths.empty;
454 }
455 }
456
457 var elementConverters = {
458 "document": function(document, messages, options) {

Callers 1

convertBreakFunction · 0.70

Calls 1

findStyleFunction · 0.70

Tested by

no test coverage detected