wiki:WikiStart

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:

$ ruby experiments/benchmark.rb 
Markdown -> HTML, 100 iterations (experiments/benchmark.txt, 8064 bytes)
Rehearsal --------------------------------------------------------------------
OldBlueCloth (1.1.0)              10.580000   0.900000  11.480000 ( 11.489173)
BlueCloth (2.0.5)                  0.060000   0.000000   0.060000 (  0.063826)
RDiscount (1.3.5)                  0.050000   0.000000   0.050000 (  0.049660)
Maruku (3.1.7.2)                   5.580000   0.050000   5.630000 (  5.640067)
PEGMarkdown (1.4.4)                0.510000   0.000000   0.510000 (  0.544883)
BlueFeather (0.30)                16.130000   5.790000  21.920000 ( 21.940418)
Tartan::Markdown::Parser (0.2.1)  14.940000   0.190000  15.130000 ( 15.131116)
---------------------------------------------------------- total: 54.780000sec

                                       user     system      total        real
OldBlueCloth (1.1.0)              10.440000   0.830000  11.270000 ( 11.275649)
BlueCloth (2.0.5)                  0.050000   0.000000   0.050000 (  0.047684)
RDiscount (1.3.5)                  0.050000   0.000000   0.050000 (  0.051337)
Maruku (3.1.7.2)                   5.370000   0.030000   5.400000 (  5.399795)
PEGMarkdown (1.4.4)                0.510000   0.000000   0.510000 (  0.521175)
BlueFeather (0.30)                15.990000   5.850000  21.840000 ( 21.891749)
Tartan::Markdown::Parser (0.2.1)  15.050000   0.210000  15.260000 ( 15.282587)

Here are some other projects that use BlueCloth:

Downloads

Development

You can also check out the current development source with Mercurial like this:

hg clone http://repo.deveiate.org/Arrow

Trac Information

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