From: Rick DeNatale Date: 2008-02-02T08:02:53+09:00 Subject: Re: RedCloth full textile support? Yep, I'm dyslexic I guess ;-( On Feb 1, 2008 5:35 PM, Rob Biedenharn wrote: > > On Feb 1, 2008, at 4:49 PM, Rick DeNatale wrote: > > > I'm trying to use the redcloth gem to do textile markup. > > > > It works, but doesn't seem to support the full set of markup. > > > > For example trying a few examples from: > > http://hobix.com/textile/quick.html which is linked to from _why?s > > Redcloth page http://whytheluckystiff.net/ruby/redcloth/ > > > > require 'rubygems' > > require 'redcloth' > > > > class String > > def textilize > > RedCloth.new(self).to_html > > end > > end > > > > "*bold* _italic_".textilize # => "

bold > > italic

" > > ".h1 Heading".textilize # => "

.h1 Heading

" > > > > So a few things seems to work but many more don't. > > > > Is there something I'm missing? > > Perhaps: > irb> "h1. Heading".textilize > => "

Heading

" > > Not ".h1" but "h1." does a heading. > > -Rob > > > > -- > > Rick DeNatale > > > > My blog on Ruby > > http://talklikeaduck.denhaven2.com/ > > > > Rob Biedenharn http://agileconsultingllc.com > Rob@AgileConsultingLLC.com > > > -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/