# Magnet::Markdown [![Gem Version](https://badge.fury.io/rb/magnet-markdown.svg)](http://badge.fury.io/rb/magnet-markdown) [![Build Status](https://travis-ci.org/magnet-inc/magnet-markdown.svg)](https://travis-ci.org/magnet-inc/magnet-markdown) [![Dependency Status](https://gemnasium.com/magnet-inc/magnet-markdown.svg)](https://gemnasium.com/magnet-inc/magnet-markdown) Magent specified markdown processor. Inspired by [qiita-markdown](https://github.com/increments/qiita-markdown). Default processors: - `Magnet::Markdown::Filter::Markdown`: convert markdown to html - `Magnet::Markdown::Filter::Sanitize`: whitelist sanitize user markup - `HTML::Pipeline::Filter::ImageMaxWidthFilter`: link to full size image for large images - `Magnet::Markdown::Filter::Emoji`: covert :emoji: to img elements ## Installation Add this line to your application's Gemfile: ```ruby gem 'magnet-markdown' ``` And then execute: ```shell $ bundle ``` Or install it yourself as: ```shell $ gem install magnet-markdown ``` ## Usage `Magnet::Markdown::Processor` provides markdown rendering: ```ruby processor = Magnet::Markdown::Processor.new processor.call(markdow) # => { # output: '