From: Phlip Date: 2005-11-07T22:32:11+09:00 Subject: Re: A wiki markup class Peter Hickman wrote: > Is there a class that can convert ordinary wiki mark-up into html and > all that? I don't want the whole of the wiki stuff just the parser. > > I've looked at redcloth / textile which is very nice but I want a more > /normal/ wiki mark-up. You could rip WikiFormatter class from MiniRubyWiki: def test_simpleWikiMarkup() aFormatter = WikiFormatter.new() aFormatter.format("this is ''em''phatic\nthis is '''strong'''") expect = "this is emphatic\nthis is strong\n" assert_equal expect, aFormatter.x.contents end Warning: You should rip the class, not try to "share" it with MRW, because it's not productized or installable or any of those nice-to-haves. http://rubyforge.org/cgi-bin/viewcvs.cgi/cvs_root.tar.gz?tarball=1&cvsroot=minirubywiki Warning 2: Don't try the EXE; per my other thread here, I have not been able to upgrade it yet. -- Phlip http://www.greencheese.org/ZeekLand <-- NOT a blog!!!