[pmwiki-users] custom markup and unwanted <p> tags

labellz labellz at earthlink.net
Fri May 15 02:22:46 CDT 2009


Hi all,

I need my sidebar to produce the following HTML:

<ul id="expList">
   <li id="navsubtop">Header
   <ul>
     <li id="navsub"><a href="page1.htm">Link 1</a></li>
     <li id="navsub"><a href="page2.htm">Link 2</a></li>
     <li id="navsub"><a href="page3.htm">Link 3</a></li>
   </ul>
   </li>
</ul>

I have the following custom markup in config.php:

Markup("expstart",'inline',"/\\(:expstart:\\)/","<ul id='expList'>");
Markup("exphead",'inline',"/\\(:exphead:\\)/","<li id='navsubtop'>");
Markup("expitem1",'inline',"/\\(:expitem1:\\)/","<ul>");
Markup("expitem",'inline',"/\\(:expitem:\\)/","<li id='navsub'>");
Markup("expitemend",'inline',"/\\(:expitemend:\\)/","</li>");
Markup("expend",'inline',"/\\(:expend:\\)/","</ul></li></ul>");

The markup itself seems okay.
The problem is that it produces the following html source:

   <ul id='expList'>
<p><li id='navsubtop'>
</p><ul>
<p><li id='navsub'><a href="page1.htm">Link 1</a></li>
<li id='navsub'><a href="page2.htm">Link 2</a></li>
<li id='navsub'><a href="page3.htm">Link 3</a></li>
</p></ul></li></ul>

Why oh why oh why oh why??  Those <p> </p> tags inside the <ul> are killing me.

What criteria does pmwiki use to decide which custom markup bits get wrapped in <p> 
tags and which don't?  Any way I can control it?

Is there any other way to get those named list tags out of pmwiki?

Appreciate any advice.

Thanks,

Liz




More information about the pmwiki-users mailing list