LanX has asked for the wisdom of the Perl Monks concerning the following question:

Hi

there is a strange behavior of pod2html. (At least I couldn't find any documentation for it.)

It automatically detects functions in =head text and surrounds them with code-tags.

$> echo "=head1 func()" | pod2html | grep '<h1>' /usr/bin/pod2html: no title for -. <h1><a name="func__"><code>func()</code></a></h1>

Any hints how to disable this behavior?

Cheers Rolf

Replies are listed 'Best First'.
Re: magic code-tags from pod2html
by toolic (Bishop) on Mar 31, 2011 at 02:37 UTC
    Is your question any different from that which was asked a couple months ago?

    Unexpected HTML from POD

    I provided a workaround (get rid of the parens), and you even chimed in.

      Thanks! Seems like I'm gonna forget my own name soon ...

      What's worse is that this thread is the 4th hit when googling the monastery for "pod2html code" (well maybe only now after you referenced it :)

      davies workaround to write func(Z<>) works fine!

      Cheers Rolf