Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kramdown-metadata-parsers

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kramdown-metadata-parsers

  • 0.9.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 11 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc