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

Function findRule

static/word2md/turndown.js:350–356  ·  view source on GitHub ↗
(rules, node, options)

Source from the content-addressed store, hash-verified

348};
349
350function findRule (rules, node, options) {
351 for (var i = 0; i < rules.length; i++) {
352 var rule = rules[i];
353 if (filterValue(rule, node, options)) return rule
354 }
355 return void 0
356}
357
358function filterValue (rule, node, options) {
359 var filter = rule.filter;

Callers 1

turndown.jsFile · 0.85

Calls 1

filterValueFunction · 0.85

Tested by

no test coverage detected