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

Function mapName

static/word2md/mammoth.browser.js:3715–3728  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

3713 };
3714
3715 function mapName(node) {
3716 if (node.uri) {
3717 var mappedPrefix = namespaceMap[node.uri];
3718 var prefix;
3719 if (mappedPrefix) {
3720 prefix = mappedPrefix + ":";
3721 } else {
3722 prefix = "{" + node.uri + "}";
3723 }
3724 return prefix + node.local;
3725 } else {
3726 return node.local;
3727 }
3728 }
3729
3730 parser.onclosetag = function(node) {
3731 currentElement = stack.pop();

Callers 1

readStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected