Skip to content

andorx/gulp-meta-marked

 
 

Repository files navigation

gulp-meta-marked 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

About

Markdown to HTML

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%