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

Function mapElementName

static/word2md/mammoth.browser.js:3794–3802  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

3792 }
3793
3794 function mapElementName(name) {
3795 var longFormMatch = /^\{(.*)\}(.*)$/.exec(name);
3796 if (longFormMatch) {
3797 var prefix = uriToPrefix[longFormMatch[1]];
3798 return prefix + (prefix === "" ? "" : ":") + longFormMatch[2];
3799 } else {
3800 return name;
3801 }
3802 }
3803
3804 function writeDocument(root) {
3805 var builder = xmlbuilder

Callers 2

writeElementFunction · 0.70
writeDocumentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected