Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.3

Request #4291 Allow formatting inside WikiLinks descriptions
Submitted: 2005-05-05 17:58 UTC
From: justinpatrin Assigned:
Status: Open Package: Text_Wiki
PHP Version: 4.3.10 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-05-05 17:58 UTC] justinpatrin
Description: ------------ Argh, since Text_Wiki is stable this will likely be a BC break that can't happen right now, but... I've created a patch which allows WikiLink descriptions to include further wiki syntax. Such as: [SomePage some '''bold''' page] http://pear.reversefold.com/Text/Wiki/WikiLink.formatting.patch This patch takes care of the Default parser as well as the XHtml, LaTeX, and Plain renderers. This is done same as lists ot tables, making the start and end of the link tokens instead of putting the whole thing in. This also changes the parse rule slightly to only include 'text' if the text is different than the page name. I suppose this could be put back as it was and you can make the renderers check 'page' vs. 'text'..I just figured it's nice to know if the text is the page name or not.

Comments

 [2005-05-06 06:11 UTC] justinpatrin
A quick note, the code I altered was from the release of Text_Wiki but the patch is against CVS.