[pmwiki-users] <!--markup:...--> adds <p>?

Dominique Faure dominique.faure at gmail.com
Mon Jul 31 04:37:44 CDT 2006


On 7/31/06, Thomas -Balu- Walter <list+pmwiki-users at b-a-l-u.de> wrote:
> On Sun, Jul 30, 2006 at 07:33:38PM +0200, Dominique Faure wrote:
> > On 7/30/06, Thomas -Balu- Walter <list+pmwiki-users at b-a-l-u.de> wrote:
> > > On Sun, Jul 30, 2006 at 03:25:12AM +0200, Dominique Faure wrote:
> > > > You should prepend a <:block> directive as in:
> > > >
> > > > <!--markup:<:block>[[Main/Imprint |Impressum]]-->
> > >
> > > <:block>?
> > >
> > > I've not seen such a directive in PmWiki yet - any pointer?
> > >
> > This is (one of) the intermediate internal markup used during the
> > translation of "wiki entities" to html blocks.
>
> It get's converted to &lt;:block&gt; in my version (which is how markup
> should be handled anyway?), so it doesn't work. Looks like I need to
> create the link manually.
>

The trick would be to have in your template:

<!--function:markup_block [[Main/Imprint |Impressum]]-->

And in a related php file:

function markup_block($pagename, $markup) {
  print MarkupToHTML($pagename, "<:block>$markup", array('escape' => 0));
}

Regards,
Dom




More information about the pmwiki-users mailing list