markdown-with-front-matter-loader
Advanced tools
A webpack loader for markdown with yaml front matter
Weekly downloads
Readme
A webpack loader for Markdown files with optional yaml front matter.
npm install markdown-with-front-matter-loader
{
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',
}
A webpack loader for markdown with yaml front matter
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.
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.