I am seeking an easy way to change the output of wikiword links
and in particular changing <span class='wikiword'> ... </span>
to something else. This is currently hard-coded.
What if scripts/wikiwords.php did something like this:
SDV($LinkWikiWordsFmt, '<span class="wikiword">$WikiLink</span>');
Markup('wikilink', ... "Keep(WikiLink(\$pagename,'$0'),'L')");
function WikiLink($pagename, $word) {
global $LinkWikiWordsFmt;
... return str_replace('$WikiLink',$word,$LinkWikiWordsFmt);
...
return str_replace('$WikiLink',
(($MarkupFrame[0][$word]-- < 1) ? $text :
MakeLink($pagename, $word, $text)),
$LinkWikiWordsFmt);
}
Then a local customisation could simple redefine
$LinkWikiWordsFmt, like any other link variable.
Currently, I have to jump through hoops to achieve a
result, basically redefining the markup rule and
wikilink function as set out above.
Any suggestions?
--
JR
--
John Rankin
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users