Extract fenced code blocks from Markdown streams
A through stream that extracts code from Markdown content, optionally selecting only code blocks of a selected type.
Currently this only works with GFM-style fenced code blocks, I don't have a need for indentation based blocks (yet). This README file makes a nice example:
Which you can pipe into
node to verify that this module is working:
module.exports = (types: String|Array<String>) => Transform<String, String>