No release in over a year
An HTML::Pipeline filter for Slack's mrkdwn markup language.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.4.10
~> 5.18
~> 13.0
~> 1.49

Runtime

 Project Readme

Html::Pipeline::Mrkdwn

An HTML::Pipeline filter for Slack's mrkdwn markup language.

Installation

Add this line to your application's Gemfile:

gem 'html-pipeline-mrkdwn'

And then execute:

$ bundle

Or install it yourself as:

$ gem install html-pipeline-mrkdwn

Usage

Example:

require 'html/pipeline'
require 'html/pipeline/mrkdwn'

filters = [
  HTML::Pipeline::PlainTextInputFilter,
  HTML::Pipeline::Mrkdwn
]

pipeline = HTML::Pipeline.new filters

input = "*bold* will produce bold text"

result = pipeline.call(input)

puts result[:output].to_html
# => "<div>\n<strong>bold</strong> will produce bold text</div>" 

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jasongorst/html-pipeline-mrkdwn.

License

The gem is available as open source under the terms of the MIT License.