From jcowan@reutershealth.com Thu Sep 20 14:17:53 2001
Return-Path: <jcowan@reutershealth.com>
X-Sender: jcowan@reutershealth.com
X-Apparently-To: lojban@yahoogroups.com
Received: (EGP: mail-7_3_2_2); 20 Sep 2001 21:17:53 -0000
Received: (qmail 61011 invoked from network); 20 Sep 2001 21:17:51 -0000
Received: from unknown (10.1.10.26)
  by l7.egroups.com with QMQP; 20 Sep 2001 21:17:51 -0000
Received: from unknown (HELO mail.reutershealth.com) (204.243.9.36)
  by mta1 with SMTP; 20 Sep 2001 21:17:51 -0000
Received: from reutershealth.com (IDENT:cowan@[192.168.3.11])
  by mail.reutershealth.com (Pro-8.9.3/Pro-8.9.3) with ESMTP id RAA10869
  for <lojban@yahoogroups.com>; Thu, 20 Sep 2001 17:19:26 -0400 (EDT)
Message-ID: <3BAA5CFE.5010702@reutershealth.com>
Date: Thu, 20 Sep 2001 17:17:50 -0400
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010913
X-Accept-Language: en-us
MIME-Version: 1.0
To: lojban@yahoogroups.com
Subject: OFFTOPIC: Wiki.pm
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
From: John Cowan <jcowan@reutershealth.com>

As part of the Elephant project, I have written a Wiki-markup
to HTML interpreter in Perl, used thus:

use Wiki;
$/ = undef;
my $text = <>;
my $html = Wiki::interpret($text)

All the usual Wiki conventions (except links that are not in
square brackets, like freestanding URLs and WikiWords) are
supported. The generated HTML is valid XHTML, provided
you wrap it in "<doctype html ...><html><head><title/></head><body>"
and "</body></html>".

This is Open Source (BSD) code. It would be easy to translate to
any other language with a decent regular expression package.

Drop me a line if you want the code.

-- 
Not to perambulate || John Cowan <jcowan@reutershealth.com>
the corridors || http://www.reutershealth.com
during the hours of repose || http://www.ccil.org/~cowan
in the boots of ascension. \\ Sign in Austrian ski-resort hotel


