Since version 1.0, md-directory no longer supports the extensions option since it was dropped by read-directory.
Inlining results with Browserify
Use transform.js to convert calls to md-directory methods into the contents they return. It is highly recommended that you use the synchronous methods md.parseDirSync and md.parseSync with Browserify.
var contents = {"hi":{"data":{"title":"foo"},"content":"<h1>bar</h1>\n"}};
Note: to use this transform, the path to the file directory can not be a variable. If you use the async methods, the callback must be an ES5 function (not an ES6 arrow function) and the results will be inlined with process.nextTick. See brfs for more details on this behavior.
API
parseDir
Read the contents of a directory and convert to Markdown asynchronously