[pmwiki-users] CustomMarkup without <p>

Christian Schlatter ch at schlatter.net
Tue May 31 11:00:23 CDT 2005


Patrick R. Michaud wrote:
> Actually, it'll be easier if you could tell us what your (:gallery:)
> Markup looks like, then I can tell you how to fix it.  :-)

OK, the Markup code looks like this:

Markup("gallery", "directive", "/\(:gallery:\)/e", Keep(cs_gallery())");

The function cs_gallery() uses the embed class of menalto gallery and 
returns the gallery body content. When I write (:gallery:) into a 
wikipage, the produced HTML looks something like:

...
<div id="content">
   <!--PageText-->
     <div id='wikitext'>
       <p>
       <!-- G2 embeded -->
         <div id="gallery">
           <div id="gsSystemLinks">
             <div></div>
...
       <!--/ G2 embeded -->
       </p>
       <p class='vspace'></p>
     </div>
</div>
</body>

Thanks for any help,
Christian




More information about the pmwiki-users mailing list