[pmwiki-users] (:noteblock:) problem
Patrick R. Michaud
pmichaud at pobox.com
Wed Apr 13 09:42:17 CDT 2005
On Wed, Apr 13, 2005 at 04:20:36PM +0200, Sebastian Siedentopf wrote:
> 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.
Oops, you're correct. It also needs the "<:block>" in there to tell
PmWiki to not wrap it as a paragraph.
> It works with
> $out= '<:block>'.Keep("<table class ='widenote'><tr><td>
> class='noteheader'>").$a." ...
Yes, you can also do
Also, note that any quotes inside of that $1 will get backslashes
in front of them -- this can be fixed by using PSS
("Pmwiki's Strip Slashes"):
> 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. " ...
The advanced tables solution is definitely better.
More information about the pmwiki-users