<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Textile to XHTML converter</title>
	<atom:link href="http://www.marcushellberg.com/2010/01/22/textile-to-xhtml-converter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcushellberg.com/2010/01/22/textile-to-xhtml-converter/</link>
	<description>blog.</description>
	<lastBuildDate>Tue, 02 Nov 2010 23:58:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: John David Eriksen</title>
		<link>http://www.marcushellberg.com/2010/01/22/textile-to-xhtml-converter/comment-page-1/#comment-126</link>
		<dc:creator>John David Eriksen</dc:creator>
		<pubDate>Tue, 02 Nov 2010 23:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.marcushellberg.com/?p=225#comment-126</guid>
		<description>I needed something similar. Thanks for posting this. 

I wanted something that would simply output converted output, allowing me to pipe it or write it to disk as needed.

This does the trick:

#!/usr/bin/env ruby

require &#039;rubygems&#039;
require &#039;RedCloth&#039;

if ARGV.size != 1
  puts &quot;Usage: textile2html FILE&quot;
  exit
end

print RedCloth.new(IO.read(ARGV[0])).to_html</description>
		<content:encoded><![CDATA[<p>I needed something similar. Thanks for posting this. </p>
<p>I wanted something that would simply output converted output, allowing me to pipe it or write it to disk as needed.</p>
<p>This does the trick:</p>
<p>#!/usr/bin/env ruby</p>
<p>require &#8216;rubygems&#8217;<br />
require &#8216;RedCloth&#8217;</p>
<p>if ARGV.size != 1<br />
  puts &#8220;Usage: textile2html FILE&#8221;<br />
  exit<br />
end</p>
<p>print RedCloth.new(IO.read(ARGV[0])).to_html</p>
]]></content:encoded>
	</item>
</channel>
</rss>

