Markdown to HTML with marked
Issues with the output should be reported on the marked issue tracker.
$ npm install --save-dev gulp-meta-marked
---
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
}));
});
See the marked options.
Access the marked
object to customize the lexer, parser or renderer.
MIT © Sindre Sorhus