Up to [cvs.NetBSD.org] / pkgsrc / textproc / ruby-maruku
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: pkgsrc-base
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Jun 15 01:05:05 2007 UTC (16 years, 10 months ago) by minskim
Branch: TNF
CVS Tags: pkgsrc-base
Changes since 1.1: +0 -0
lines
Diff to previous 1.1 (colored)
Import ruby-maruku. Maruku is a Markdown interpreter written in Ruby. The other Ruby implementation of Markdown is Bluecloth. Maruku is much different in philosophy from Bluecloth; the biggest difference is that parsing is separated from rendering. In Maruku, an in-memory representation of the Markdown document is created. Instead, Bluecloth mantains the document in memory as a String at all times, and does a series of gsub to transform to HTML. Maruku is usually faster than Bluecloth. Bluecloth is faster for very small documents. Bluecloth sometimes chokes on very big documents (it is reported that the blame should be on Ruby's regexp implementation).