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

Function writeElement

static/word2md/mammoth.browser.js:3787–3792  ·  view source on GitHub ↗
(builder, element)

Source from the content-addressed store, hash-verified

3785 }
3786
3787 function writeElement(builder, element) {
3788 var elementBuilder = builder.element(mapElementName(element.name), element.attributes);
3789 element.children.forEach(function(child) {
3790 writeNode(elementBuilder, child);
3791 });
3792 }
3793
3794 function mapElementName(name) {
3795 var longFormMatch = /^\{(.*)\}(.*)$/.exec(name);

Callers

nothing calls this directly

Calls 2

mapElementNameFunction · 0.70
writeNodeFunction · 0.70

Tested by

no test coverage detected