tokenize-markdown
Get an array of markdown tokens per file from an array of files, optionally filtered to only those tokens matching a particular set of attributes
Installation
Install via NPM with npm install tokenize-markdown
.
Usage
var tokenizeMarkdown = ; // Get all tokensvar tokens = tokenizeMarkdown; // Get only tokens of type "code" and lang "javascript"var jsTokens = tokenizeMarkdown; // Get tokens of lang "javascript" or "html", using a regexvar jsOrHtmlTokens = tokenizeMarkdown;
Credits
© 2015 K. Adam White, based on work by Tim Branyen
Released under the MIT License.