# RedCloth(foo).to\_text

**URL:** <https://www.ruby-forum.com/t/redcloth-foo-to-text/79983>\
**Category:** Ruby\
**Created:** [December 20, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/redcloth-foo-to-text/79983 "2006-12-20T19:51:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![morten](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/cdc98d/32.png) [@morten](https://www.ruby-forum.com/u/morten)\
**Post date:** [December 20, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/redcloth-foo-to-text/79983/1 "2006-12-20T19:51:13Z")

</div>

Hi,

We have a website where admins can use textile (via RedCloth) to format  
their content.

Now we’d like to provide RSS feeds for same content (as text/plain). But  
the textile markup doesn’t look very good unrendered.

I’m wondering if anyone has ever made a mechanism that renders textile  
to a sensible text/plain formatting?

Eg.

```
h1. Foo bar

```

Could be

```
Foo bar
=======

```

And tables could be CSV or tab-separated and so forth. Anyone know of a  
such implementation?

Br,

Morten
