# RedCloth full textile support?

**URL:** <https://www.ruby-forum.com/t/redcloth-full-textile-support/127866>\
**Category:** Ruby\
**Created:** [February 1, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/redcloth-full-textile-support/127866 "2008-02-01T22:50:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rykkers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Post date:** [February 1, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/redcloth-full-textile-support/127866/1 "2008-02-01T22:50:15Z")

</div>

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:  
[Textile Quick Reference](http://hobix.com/textile/quick.html) which is linked to from \_why?s  
Redcloth page [http://whytheluckystiff.net/ruby/redcloth/](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/](http://talklikeaduck.denhaven2.com/)

---

<div class="post-metadata">

**Author:** ![rykkers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Post date:** [February 1, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/redcloth-full-textile-support/127866/2 "2008-02-01T23:36:12Z")

</div>

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/](http://talklikeaduck.denhaven2.com/)

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![rykkers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Post date:** [February 2, 2008, 12:03am UTC](https://www.ruby-forum.com/t/redcloth-full-textile-support/127866/3 "2008-02-02T00:03:55Z")

</div>

Yep, I’m dyslexic I guess ;-(

On Feb 1, 2008 5:35 PM, Rob B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > _italic_
> > 
> > "  
> > Not “.h1” but “h1.” does a heading.
> 
> Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
> removed\_email\_address@domain.invalid

–  
Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)
