[pmwiki-users] (:noteblock:) problem

Sebastian Siedentopf schlaefer at macnews.de
Wed Apr 13 09:20:36 CDT 2005


Thanks for your detailed answers. I have still to figure out what
$KPV[$KPCount.$level]=$x; is about and where all the magic "prevent" and
"replace at the end" stuff takes place.

Even a comlete Keep()

 Markup('note','directives','/\(:note\s(.*?):\)/e', "Keep(notefct('$1'))");

wraps it it <p></p> also in 2beta29. It works with

 $out= '<:block>'.Keep("<table class ='widenote'><tr><td>
class='noteheader'>").$a." ...

> However, this doesn't fix (:noteblock:) itself, which contains
> things that are spread across multiple lines (including paragraphs
> and the like).  Getting that one to work is a bit tricky.

It didn't work with keeping html code. I always got something like

    <table> ... wiki text ... <p></td></tr></table></p>

Because the noteblock markup executes before processing the table and split
markup I think there is no problem in using advanced tables?

 $out= "(:table class='widenote' style='" .$somestyle. "':)\n (:cellnr
class='noteheader'  style=' " .$someothersyle. "':)" .$a. " ...

Sebastian





More information about the pmwiki-users mailing list