From: James Britt Date: 2005-04-15T09:57:45+09:00 Subject: Re: RedCloth, BlueCloth... Hal Fulton wrote: > ...OldCloth, NewCloth? (Sorry, I went to a Dr. Seuss exhibit > here in town.) That's OK; when I read the subject line, I filled in the rest of it with " ... 1 2 3!" > > I want to know what's the best way to manage a file that has > both text and HTML versions. (Yes, I'm talking about the > comp.lang.ruby FAQ, which should autopost tomorrow.) > > In the past, I've done this the worst possible way -- keeping > them manually in sync. I've also done some playing with > textual browsers and such. > > What's a good/easy way to do this? Lynx, links? RedCloth, > BlueCloth, PlaidCloth? MarkDown, MarkUp, MarkTwain? Once upon a time I had a similar issue with the ruby-doc weekly news summary. I wanted an RSS feed, an E-mail posting, and something else I cannot recall. This may have been before Textile/Markdown, but I used something along those lines. I wrote a small app that grabbed a single input file and ran it through assorted transformers to produce the .eml file, the RSS, and whatever else. Textile is quite nice for generating HTML; Markdown is handy because it is ready-made for plain-text E-mail. I would opt for Markdown here, though, as it can go straight to ruby-talk as-is. James