Skip to content

Markdown metadata parser is a tiny library that gets a markdown content and returns it's metadata as a javascript object

Notifications You must be signed in to change notification settings

acrobit/markdown-metadata-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

Installation

yarn add markdown-metadata-parser

or

npm install markdown-metadata-parser --save

Usage

var parser = require('markdown-metadata-parser');

var md = `
---
title: The title
name: The name
order: 100 
---

# This is a markdown title
`

var metadata = parser.parseMarkdownMetadata(mardown);

About

Markdown metadata parser is a tiny library that gets a markdown content and returns it's metadata as a javascript object

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published