gulp-meta-marked
v0.1.3
Published
Gulp Markdown Plugin (supported metadata)
Downloads
6
Maintainers
Readme
gulp-meta-markdown
Markdown to HTML with marked
Issues with the output should be reported on the marked issue tracker.
Install
$ npm install --save-dev gulp-meta-marked
Usage
---
title: Lorem ipsum dolor sit amet
---
# Heading
var gulp = require('gulp');
var metaMarkdown = require('gulp-meta-marked');
gulp.task('default', function () {
return gulp.src('intro.md')
.pipe(metaMarkdown())
.pipe(data(function(file) {
var fileContents = JSON.parse(file.contents);
// fileContents.meta
// fileContents.html
}));
});
API
markdown(options)
See the marked options.
markdown.marked
Access the marked
object to customize the lexer, parser or renderer.
License
MIT © Sindre Sorhus