On Wed, May 07, 2003 at 04:07:05PM -0700, Brion Vibber wrote:
On Wed, 7 May 2003, Nick Reinking wrote:
Just to update everybody on my progress with the C wikitext parser:
To do:
- Lists of any sort
*shudder* :)
Yep, that's why I've put it off for last.
- Sections, subsections, and subsubsections (==, ===, and ==== respectively)
Should work from = to ====== (h1 to h6).
Okay, I didn't know that. Easy enough to add, though. :)
- Emphasis, strong emphasis, and very strong emphasis ('', ''', and ''''')
Make sure the following cases work (and produce correct HTML, unlike our current code): ''italic '''bold-italic''' italic'' '''''bold-italic''' italic'' ''italic '''bold-italic'''''
'''bold ''bold-italic'' bold''' '''''bold-italic'' bold''' '''bold ''bold-italic'''''
That produces:
<em>italic <strong>bold-italic</strong> italic</em> <strong><em>bold-italic<strong> italic<em> </em>italic </strong>bold-italic</em></strong>
<strong>bold <em>bold-italic</em> bold</strong> <strong><em>bold-italic<em> bold<strong> </strong>bold </em>bold-italic</em></strong>
Must be done by PHP:
- Handle links / link lookup
- Ignore links in <nowiki>
<nowiki> and <math> sections should probably be pulled out _before_ parsing, and their contents processed and reinserted after parsing.
Don't worry, it is very easy and cheap for me to ignore them, and do the converstion inside of <nowiki>.