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

Function identifierToConstant

static/word2md/mammoth.browser.js:2718–2725  ·  view source on GitHub ↗
(identifier, constant)

Source from the content-addressed store, hash-verified

2716 var sequence = lop.rules.sequence;
2717
2718 var identifierToConstant = function(identifier, constant) {
2719 return lop.rules.then(
2720 lop.rules.token("identifier", identifier),
2721 function() {
2722 return constant;
2723 }
2724 );
2725 };
2726
2727 var paragraphRule = identifierToConstant("p", documentMatchers.paragraph);
2728 var runRule = identifierToConstant("r", documentMatchers.run);

Callers 1

documentMatcherRuleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected