🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
13
node_modules/gray-matter/lib/parse.js
generated
vendored
Normal file
13
node_modules/gray-matter/lib/parse.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
const getEngine = require('./engine');
|
||||
const defaults = require('./defaults');
|
||||
|
||||
module.exports = function(language, str, options) {
|
||||
const opts = defaults(options);
|
||||
const engine = getEngine(language, opts);
|
||||
if (typeof engine.parse !== 'function') {
|
||||
throw new TypeError('expected "' + language + '.parse" to be a function');
|
||||
}
|
||||
return engine.parse(str, opts);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue