How to use the markdownlint-rule-helpers.filterTokens function in markdownlint-rule-helpers

To help you get started, we’ve selected a few markdownlint-rule-helpers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DavidAnson / markdownlint / test / rules / any-blockquote.js View on Github external
"function": (params, onError) => {
    filterTokens(params, "blockquote_open", (blockquote) => {
      const lines = blockquote.map[1] - blockquote.map[0];
      onError({
        "lineNumber": blockquote.lineNumber,
        "detail": "Blockquote spans " + lines + " line(s).",
        "context": blockquote.line.substr(0, 7)
      });
    });
  }
};

markdownlint-rule-helpers

A collection of markdownlint helper functions for custom rules

MIT
Latest version published 4 months ago

Package Health Score

85 / 100
Full package analysis