R
Rick DeNatale
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 # => "<p><strong>bold</strong> <em>italic</em></p>"
".h1 Heading".textilize # => "<p>.h1 Heading</p>"
So a few things seems to work but many more don't.
Is there something I'm missing?
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 # => "<p><strong>bold</strong> <em>italic</em></p>"
".h1 Heading".textilize # => "<p>.h1 Heading</p>"
So a few things seems to work but many more don't.
Is there something I'm missing?