[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
     <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>

I have the following custom markup in config.php:

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

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

   <ul id='expList'>
<p><li id='navsubtop'>
<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>

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.



More information about the pmwiki-users mailing list