From: Jeff Dairiki <dairiki@da...> - 2002-09-16 22:25:08
I've just added support for named anchors within wiki-text.
They work as per the suggestions made on NewInlineMarkup.
Anchors are defined like this: here is #[anchor1].
You can reference it like this: please see [#anchor1].
You can also, of course, specify the text for the anchor (or the link).
Anchor two is #[here | anchor2].
Please see [above | #anchor2] for the definition of anchor two.
You can of course also link to [anchors on other pages | SandBox#demo ].
I am working towards eliminating the old markup transformation code
in transform.php in favor of the new markup code. To this end I am
working on a translator which will translate old markup to new markup.
(The named anchors were necessary to be able to implement support
for the old-markup footnotes.)
I think now the only other old-markup construct which cannot be
translated to new markup is the old-style tables.
As I've yet to come up with a syntax for tables which I like enough
to incorporate into the new markup rules, I think for the interim,
I'm just going to write an OldStyleTable plugin which will make
it possible to completely translate any old-style markup to new-style.
Anyone have a better idea for a table syntax?
One we're back to one markup transform engine, I'm going to work
on unifying the link extraction with the markup engine, and,
best of all, work on caching marked up wiki-text.