1 | /*!
|
2 | * gulp-format-md <https://github.com/jonschlinkert/gulp-format-md>
|
3 | *
|
4 | * Copyright (c) 2015, Jon Schlinkert.
|
5 | * Licensed under the MIT License.
|
6 | */
|
7 | ;
|
8 |
|
9 | const through = require('through2');
|
10 | const middleware = require('./middleware');
|
11 |
|
12 | module.exports = config => {
|
13 | let fn = middleware(config);
|
14 | return through.obj((file, enc, next) => fn(file, next));
|
15 | };
|