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

remarkable-meta

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remarkable-meta

Add YAML metadata to the remarkable pluggable markdown parser

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
86
increased by104.76%
Maintainers
1
Weekly downloads
 
Created
Source

remarkable-meta

Add YAML metadata to the remarkable pluggable markdown parser

build status

Based on code by Alex Kocharin from this mailing list post.

Installation

This module is installed via npm:

$ npm install remarkable-meta

Example Usage

Given the following markdown file test.md with YAML meta data delimited by --- placed at the very top of the markdown file:

---
My: Word
Author: Eugene
Stuff:
  - My
  - Stuff
---

# My document

## Second heading

This is awesome.

* a point
* another point

The YAML front-matter metadata will be available on the markdown object after parsing when you add the remarkable-meta plugin:

var meta = require('remarkable-meta');
var md = new Remarkable();
md.use(meta);

// Load the file listed above
var file = fs.readFileSync('./test.md', 'uf8');

var html = md.render(mdText);
console.log(md.meta);
// { My: 'Word', Author: 'Eugene', Stuff: [ 'My', 'Stuff' ] }

Keywords

FAQs

Package last updated on 24 Nov 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