Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

markdown-with-front-matter-loader

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

markdown-with-front-matter-loader

A webpack loader for markdown with yaml front matter

    0.1.0latest

Version published
Maintainers
1
Yearly downloads
7,542
decreased by-10.51%

Weekly downloads

Readme

Source

A webpack loader for Markdown files with optional yaml front matter.

Installation

npm install markdown-with-front-matter-loader

Usage

{ module: { loaders: { {test: /\.md$/, loader: 'markdown-with-front-matter'}, ] } }

The result of importing a markdown file will be a JavaScript object with properties from the front matter (as parsed by js-yaml-front-matter) and a __content property containing the transformed markdown. For example,

--- name: Winston the Bulldog contact: email: [email protected] --- I LIKE TO EAT CATS ================== * Fat cats * Skinny cats * Whatever

becomes

{ name: 'Winston the Bulldog', contact: { email: '[email protected]', }, __content: '<h1 id="i-like-to-eat-cats">I LIKE TO EAT CATS</h1>\n<ul>\n<li>Fat cats</li>\n<li>Skinny cats</li>\n<li>Whatever</li>\n</ul>\n', }

Keywords

FAQs

What is markdown-with-front-matter-loader?

A webpack loader for markdown with yaml front matter

Is markdown-with-front-matter-loader popular?

The npm package markdown-with-front-matter-loader receives a total of 322 weekly downloads. As such, markdown-with-front-matter-loader popularity was classified as not popular.

Is markdown-with-front-matter-loader well maintained?

We found that markdown-with-front-matter-loader demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 12 Jun 2015
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc