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

rpeg-multimarkdown2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rpeg-multimarkdown2

  • 2.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Ruby PEG MultiMarkdown 2

An extension library around Fletcher Penney's implementation of MultiMarkdown in C. This library is based (almost entirely) on rpeg-multimarkdown.

Synopsis

>> require 'multimarkdown2'

>> puts MultiMarkdown.new('Hello, world.').to_html
# <p>Hello, world.</p>

>> puts MultiMarkdown.new('_Hello World!_', :smart, :filter_html).to_html
# <p><em>Hello World!</em></p>

>> puts MultiMarkdown.new('_Hello World!_').to_latex
# \emph{Hello World!}

>> puts MultiMarkdown.new("Title: Some document\n\nSome text in the document").extract_metadata("title")
# Some document

>> PEGMultiMarkdown.new('Hello! World!')

Installation / Hacking

This library requires a recent version of glib2. All modern GNU userland systems should be fine.

Install from GEM:

$ sudo gem install rpeg-multimarkdown2

Hacking:

$ git clone git://github.com/AndorChen/rpeg-multimarkdown2.git
$ cd rpeg-multimarkdown2
$ rake test

Changes

COPYING

The peg-markdown, peg-multimarkdown, and Ruby PEG Markdown extension sources are licensed under the GPL and the Ruby PEG MultiMarkdown extension sources adopts this license. See the file LICENSE included with this distribution for more information.

FAQs

Package last updated on 08 Jan 2013

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