No commit activity in last 3 years
No release in over 3 years
Parse Markdown/Kramdown with YAML metadata
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.4
 Project Readme

Kramdown Metadata Parsers

Kramdown extension for parsing Markdown with a YAML preamble, for example

---
title: Now With Fresh Metadata
date: 2014-10-11
---

## Good stuff

*right*?

Adds four new parsers, analogous with the ones included with Kramdown: MetadataKramdown, MetadataMarkdown, MetadataGFM, MetadataHTML. Use as you would use built-in formats, just make sure this gem is in your load path (i.e. add it to your Gemfile)

doc = Kramdown::Document.new(markdown, input: 'MetadataKramdown')
doc.root.metadata # => {:title => 'Now With Fresh Metadata', :date => '2014-10-11'}
doc.to_html