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

Function Matcher

static/word2md/mammoth.browser.js:3027–3036  ·  view source on GitHub ↗
(elementType, options)

Source from the content-addressed store, hash-verified

3025}
3026
3027function Matcher(elementType, options) {
3028 options = options || {};
3029 this._elementType = elementType;
3030 this._styleId = options.styleId;
3031 this._styleName = options.styleName;
3032 if (options.list) {
3033 this._listIndex = options.list.levelIndex;
3034 this._listIsOrdered = options.list.isOrdered;
3035 }
3036}
3037
3038Matcher.prototype.matches = function(element) {
3039 return element.type === this._elementType &&

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected