RedCloth full textile support?

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?


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

On Feb 1, 2008, at 4:49 PM, Rick DeNatale wrote:

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 B. http://agileconsultingllc.com
[email protected]

Yep, I’m dyslexic I guess ;-(

On Feb 1, 2008 5:35 PM, Rob B. [email protected]
wrote:

italic

"
Not “.h1” but “h1.” does a heading.

Rob B. http://agileconsultingllc.com
[email protected]


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs