No commit activity in last 3 years
No release in over 3 years
A renderer for Redcarpet. Render Markdown to the command line!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

ConsoleRenderer

Sometimes you want to read a Markdown document without having to render it to HTML and open a browser. ConsoleRenderer allows you to render a Markdown document and read it right from the command line.

ConsoleRenderer is available:

As an executable

console_renderer [markdown doc]
echo '#hello' | console_renderer
cat [markdown doc] | console_renderer

Example

console_renderer example

As a gem

require 'redcarpet'
require 'console_renderer'
m = Redcarpet::Markdown.new(ConsoleRenderer)
puts m.render("# Title \n para")

Install

gem install console_renderer