0.1.3 • Published 8 years ago

gulp-meta-marked v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

gulp-meta-markdown Build Status

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