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

Function generateElementString

static/word2md/mammoth.browser.js:2207–2215  ·  view source on GitHub ↗
(writer, node)

Source from the content-addressed store, hash-verified

2205};
2206
2207function generateElementString(writer, node) {
2208 if (ast.isVoidElement(node)) {
2209 writer.selfClosing(node.tag.tagName, node.tag.attributes);
2210 } else {
2211 writer.open(node.tag.tagName, node.tag.attributes);
2212 write(writer, node.children);
2213 writer.close(node.tag.tagName);
2214 }
2215}
2216
2217function generateTextString(writer, node) {
2218 writer.text(node.value);

Callers

nothing calls this directly

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected