BlueCloth

BlueCloth is a Ruby implementation of Markdown, a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).

See the AboutMarkdown page for an example of the syntax.

Benchmarks

Here's a benchmark that compares the render time of all the Ruby Markdown implementations I know about, generated using this script:

$ experiments/benchmark.rb 
Markdown -> HTML, 100 iterations (experiments/benchmark.txt, 8064 bytes)
Rehearsal --------------------------------------------------------------------
OldBlueCloth (1.1.0)              11.160000   1.040000  12.200000 ( 12.546876)
BlueCloth (2.0.2)                  0.050000   0.000000   0.050000 (  0.057174)
RDiscount (1.3.4)                  0.060000   0.010000   0.070000 (  0.060261)
Maruku (3.1.7.2)                   6.350000   0.050000   6.400000 (  6.546853)
PEGMarkdown (1.4.4)                0.580000   0.010000   0.590000 (  0.588281)
BlueFeather (0.21)                14.390000   0.940000  15.330000 ( 15.359384)
Tartan::Markdown::Parser (0.2.1)  16.230000   0.230000  16.460000 ( 16.572897)
---------------------------------------------------------- total: 51.100000sec

                                       user     system      total        real
OldBlueCloth (1.1.0)              10.970000   1.020000  11.990000 ( 12.055974)
BlueCloth (2.0.2)                  0.060000   0.000000   0.060000 (  0.057727)
RDiscount (1.3.4)                  0.060000   0.000000   0.060000 (  0.061195)
Maruku (3.1.7.2)                   6.180000   0.050000   6.230000 (  6.247997)
PEGMarkdown (1.4.4)                0.580000   0.010000   0.590000 (  0.586134)
BlueFeather (0.21)                14.130000   1.120000  15.250000 ( 15.562817)
Tartan::Markdown::Parser (0.2.1)  16.410000   0.300000  16.710000 ( 17.152420)

Here are some other projects that use BlueCloth:

Downloads

Development

You can also check out the current development source with Subversion via the following URL:

svn://deveiate.org/BlueCloth/trunk

Trac Information

For a complete list of local wiki pages, see TitleIndex.