This is a great script. These links might be useful to you when making the
script display images as the first folder is the first character of an MD5
hash of the image name, and the sub-folder is the first two characters of
the same hash. E.g. the MD5 of Wiki.jpg is dfc8b3d43bf2b5d7ef76c43459f6b06f
so Wiki.jpg so the location of the image path ends: /d/df/Wiki.jpg
-----Original Message-----
From: wikitech-l-bounces(a)wikimedia.org
[mailto:wikitech-l-bounces@wikimedia.org] On Behalf Of Pedro Fayolle
Sent: 23 January 2005 18:48
To: wikitech-l(a)wikimedia.org
Subject: [Wikitech-l] Wiki parser in JavaScript
Hi,
I've been coding a wiki parser in JavaScript with the hope it could be
of some use for the project (especially in giving some relief to the
servers).
You can view a demo here:
http://gusanos.sourceforge.net/wp/wikitest.htm
So far it supports the following features:
*Headings (all levels)
*Normal paragraphs
*Internal and external links (with hidden namespaces and
parentheses even)
*Normal inline formatting (italics and bold)
*Lists and definition lists (can be nested)
*Tables with full nesting (can even nest other tables)
*Horizontal bars
What still needs to be done:
*<nowiki> tags
*Undesired HTML stripping
*Images
*Interproject links
*Interwiki links
*Categories
*Signatures
*TOC
*Hierogliphs
*Templates
*?
I think this could be useful for quick previews, avoiding
extra server hits.
Some notes:
I've tested it in the following browsers (all of in which more or less
works): Firefox, Opera 7, Konqueror 3.3, Internet Explorer 6.
IE5 just yields an error and does nothing, but I don't feel like
wasting time making it work in it.
What do you think?
-Pedro Fayolle (aka Pilaf)
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/wikitech-l