MCPcopy Index your code
hub / github.com/TruthHun/BookStack / parseString

Function parseString

static/word2md/mammoth.browser.js:2975–2984  ·  view source on GitHub ↗
(rule, string)

Source from the content-addressed store, hash-verified

2973).head();
2974
2975function parseString(rule, string) {
2976 var tokens = tokenise(string);
2977 var parser = lop.Parser();
2978 var parseResult = parser.parseTokens(rule, tokens);
2979 if (parseResult.isSuccess()) {
2980 return results.success(parseResult.value());
2981 } else {
2982 return new results.Result(null, [results.warning(describeFailure(string, parseResult))]);
2983 }
2984}
2985
2986function describeFailure(input, parseResult) {
2987 return "Did not understand this style mapping, so ignored it: " + input + "\n" +

Callers 3

readStyleFunction · 0.70
readDocumentMatcherFunction · 0.70
readHtmlPathFunction · 0.70

Calls 2

tokeniseFunction · 0.70
describeFailureFunction · 0.70

Tested by

no test coverage detected