# Redcloth

**URL:** <https://www.ruby-forum.com/t/redcloth/93070>\
**Category:** Rails\
**Created:** [April 27, 2007, 4:47am UTC](https://www.ruby-forum.com/t/redcloth/93070 "2007-04-27T04:47:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [April 27, 2007, 4:47am UTC](https://www.ruby-forum.com/t/redcloth/93070/1 "2007-04-27T04:47:00Z")

</div>

how to format an html string to redcloth format, the opposite function  
to to\_html ?

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [April 27, 2007, 6:06am UTC](https://www.ruby-forum.com/t/redcloth/93070/2 "2007-04-27T06:06:05Z")

</div>

#to\_html is a one-way function. Not everything that can be expressed  
in HTML has a representation in redcloth. I guess you could hack  
something up that throws out non-mappable forms, but…

On Apr 27, 10:45 am, Jean-Sébastien [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [April 27, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/redcloth/93070/3 "2007-04-27T16:07:24Z")

</div>

There is also html2textile written in python.

I cannot compare it with clothred because I didn’t use clothred (yet).

best regards,  
Bojan

Dorren wrote:

> clothred  
> [http://clothred.rubyforge.org/2007-04-10-faq.html](http://clothred.rubyforge.org/2007-04-10-faq.html)
> 
> On Apr 26, 10:45 pm, Jean-Sébastien [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > how to format an html string to redcloth format, the opposite function  
> > to to\_html ?

–  
Bojan M.  
 → Ruby on Rails and Web D. Blog : [http://source.mihelac.org](http://source.mihelac.org)

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [April 27, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/redcloth/93070/4 "2007-04-27T16:24:25Z")

</div>

thank you people, i think redcloth is the good solution for me.

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [April 27, 2007, 7:03am UTC](https://www.ruby-forum.com/t/redcloth/93070/5 "2007-04-27T07:03:09Z")

</div>

clothred  
[http://clothred.rubyforge.org/2007-04-10-faq.html](http://clothred.rubyforge.org/2007-04-10-faq.html)

On Apr 26, 10:45 pm, Jean-Sébastien [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
