• Stars
    star
    251
  • Rank 157,103 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📝 Webpack Loader for: FrontMatter (.md) -> HTML + Attributes (+ React/Vue Component)

frontmatter-markdown-loader

npm GitHub Workflow Status

Webpack Loader for Front Matter files (.md) which returns:

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.

🔰 You have trouble with missing object?

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

License

More Repositories

1

vite-plugin-markdown

A vite plugin to import a Markdown file in various formats like Front Matter, HTML, ToC, and React/Vue Component
TypeScript
204
star
2

vite-plugin-elm

A plugin for Vite enables you to compile an Elm application/document/element
TypeScript
159
star
3

jest-matcher-vue-test-utils

✨ Cute jest matchers to test Vue components with vue-test-utils
TypeScript
32
star
4

nuxt-ts

⚠️ DEPRECATED: Enable your Nuxt project to use TypeScript easier and quicker
JavaScript
22
star
5

nuxt-typescript-template

Handy starter for Nuxt 2 + TypeScript
JavaScript
11
star
6

frontmatter-markdown-loader-vue-sample

A sample project for compiled Vue by frontmatter-markdown-loader
JavaScript
10
star
7

hmsk.me

🎮 A personal website of @hmsk with the UI like "Ring Command" from "Secret of Mana"
Elm
10
star
8

netlify-functions-in-go

Deployable template of multiple Go lambda functions for Netlify Functions
Go
8
star
9

hubot-esa

A Hubot script handling webhooks and retrieving info from esa: https://esa.io
CoffeeScript
8
star
10

frontmatter-markdown-loader-nuxt-sample

Nuxt app to demonstrate the usage of frontmatter-markdown-loader
Vue
7
star
11

ring-fit-adventure-icons

128x128 icons for Slack Team/Discord Guild with respecting Ring Fit Adventure by Nitendo.
7
star
12

symlink-webpack-plugin

🔗 Make symbolic links among files built by Webpack
JavaScript
5
star
13

harp-gh-pages-boilerplate

The boilerplate of harp project publishing compiled files to GitHub Pages
JavaScript
4
star
14

text.hmsk.me

A blog system with Elm, siteelm, and Netlify CMS
Elm
3
star
15

generator-harp-gh-pages

Yeoman generater for Harp project deploying with GitHub Pages, automating with Circle CI
JavaScript
3
star
16

webpay-sinatra-sample

Try WebPay API with Ruby, Sinatra
Ruby
3
star
17

persona-js

An unofficial JS client for Persona withpersona.com
TypeScript
3
star
18

hubot-sandbox

Shell
1
star
19

nord-atom-ui-vertical-tabs

Change tab direction of nord-atom-ui
CoffeeScript
1
star
20

elm-css-modern-normalize

An Elm port of modern-normalize for rtfeldman/elm-css.
Elm
1
star
21

lzfx

Ruby
1
star
22

elm-vite-plugin-helper

An Elm package to provide helpers for using vite-plugin-elm
Elm
1
star