?

Log in

No account? Create an account

Previous Entry | Next Entry

Feb. 9th, 2005

I should be in bed, but instead I hacked on the Wiki renderer, adding something I’ve wanted to do for a while — add XHTML2-inspired links. Any normal markup can now have <url> appended to it, and it will turn the previous thing into a link. I think it’s delightfully clean, just as the href attribute working on nearly any element in XHTML2 is elegant.

Comments

( 6 comments — Leave a comment )
hitchhiker
Feb. 9th, 2005 05:45 am (UTC)
Which wiki?
aredridel
Feb. 9th, 2005 11:18 am (UTC)
scytrin
Feb. 9th, 2005 09:14 am (UTC)
I saw that last night just before I went to bed. That's snifty!
The code is in render.php?
aredridel
Feb. 9th, 2005 11:19 am (UTC)
Sure is. A lot of your work on the Ruby version clarified how to make the PHP version go with a minimum of fuss. Thanks!
noam_rion
Feb. 9th, 2005 01:15 pm (UTC)
What is its definition of "previous thing"? I see that two plaintext words (Google Site) became a link. Is the capture method "grab as much as you can of the previous type of thing"? (e.g. if there was unformatted text before the URL, it would grab as much unformatted text as it could. If there was bold text, it would grab all the bold text.)
aredridel
Feb. 9th, 2005 09:35 pm (UTC)
It'll work for a proper noun phrase, underscored, italic, bold or quoted phrase. I might consider one-word before <>, too, but that might just be silly.
( 6 comments — Leave a comment )