RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

markdown_select 0.1 - Another Markdown Wrapper to Let You Use Your Library of Choice

I’ve extracted the code for handling the loading and selection of different markdown libraries (such as kramdown, bluecloth, maruku, rpeg-markdown, rdiscount, pandoc-ruby, etc.) from the Slideshow gem and bundled up in its own gem, that is, markdown_select.

Comments

I also released multi_markdown a few weeks ago. I like how you normalized the options/output for each library.

Too long for FP, but:

Use it like:

require 'markdown_select' MarkdownSelect.new( 'Your Markdown Text Here' ).to_html

Why does markdown_select depend on kramdown?

Thanks for highlighting multi_markdown. Will add it to the alternatives section w/ the next readme update. markdown_select depends on kramdown because kramdown gets used as the all-Ruby fallback markdown engine. Cheers.

NOTE: The gem moved to a simpler name. markdown_select is now just markdown. New Markdown Engine Wrapper Projekt link. Cheers.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in