frontmatter-markdown-loader
Webpack loader for Front Matter Markdown file to get front matter attributes, compiled markdown and React/Vue component which renders compiled markdown
510,179
250
| Install | |
|---|---|
npm install frontmatter-markdown-loader |
|
| Latest Version: | 3.7.0 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Oct 20, 2026 |
| Links: | GitHub · npm |
Maintainer: hmsk
frontmatter-markdown-loader
Webpack Loader for Front Matter files (.md) which returns:
- Front Matter attributes
- Compiled markdown as HTML
- Compiled markdown as a React component
- Compiled markdown as a Vue component
This FrontMatter markdown file something.md:
---
subject: Hello
tags:
- tag1
- tag2
---
# Title
message
is loadable as:
import fm from "something.md"
fm.attributes // FrontMatter attributes => { subject: "Hello", tags: ["tag1", "tag2"] }
fm.html // Compiled markdown as HTML => "<h1>Title</h1>\n<p>message</p>\n"
fm.react // Component function for React which renders compiled markdown (Disabled as default)
fm.vue.component // Extendable component object for Vue which renders compiled markdown (Disabled as default)
📚 See the documentation for the further detail.
The loader got the breaking changes in the latest major update. The article which you referred might premise on the old version. Check the installed version, if that says 1.x.y, see this guide.
Samples
Inspired/Referred
- egoist/vmark: Convert markdown to Vue component.
- webpack-contrib/json-loader: json loader module for webpack
License
- MIT License Copyright 2018-present Kengo Hamasaki
- And thanks for Contributors
Related Packages
@vusion/md-vue-loader
Webpack loader for converting Markdown files to alive Vue components.
19,363
5
Version History
| Version | Released | License |
|---|---|---|
| 3.7.0 | MIT | |
| 3.6.3 | MIT | |
| 3.6.2 | MIT | |
| 3.6.1 | MIT | |
| 3.6.0 | MIT | |
| 3.5.0 | MIT | |
| 3.4.3 | MIT | |
| 3.4.2 | MIT | |
| 3.4.1 | MIT | |
| 3.4.0 | MIT | |
| 3.3.0 | MIT | |
| 3.2.1 | MIT | |
| 3.2.0 | MIT | |
| 3.1.0 | MIT | |
| 3.0.0 | MIT | |
| 2.3.0 | MIT | |
| 2.2.0 | MIT | |
| 2.1.0 | MIT | |
| 2.0.0 | MIT | |
| 1.8.0 | MIT | |
| 1.7.0 | MIT | |
| 1.6.1 | MIT | |
| 1.6.0 | MIT | |
| 1.5.2 | MIT | |
| 1.5.1 | MIT | |
| 1.5.0 | MIT | |
| 1.4.0 | MIT | |
| 1.3.0 | MIT | |
| 1.2.1 | MIT | |
| 1.2.0 | MIT |
Showing the latest 30 of 33. See every release on npm
Pre-releases (18)
| Version | Released | License |
|---|---|---|
| 3.6.2-0 | MIT | |
| 3.6.1-1 | MIT | |
| 3.6.1-0 | MIT | |
| 3.6.0-1 | MIT | |
| 3.6.0-0 | MIT | |
| 3.4.3-0 | MIT | |
| 3.1.0-0 | MIT | |
| 3.0.0-2 | MIT | |
| 3.0.0-1 | MIT | |
| 3.0.0-0 | MIT | |
| 2.3.0-0 | MIT | |
| 2.0.0-1 | MIT | |
| 2.0.0-0 | MIT | |
| 1.4.0-beta.3 | MIT | |
| 1.4.0-beta.2 | MIT | |
| 1.4.0-beta.1 | MIT | |
| 1.2.0-beta.2 | MIT | |
| 1.2.0-beta.1 | MIT |