Is my =item usage forbidden by POD rules?

Doesn't really matter :) but it isn't , see in perlpodspec, perlpod

Naturally this assumes the invalid-pod you posted is really valid pod in your real file

Can this be corrected in pod2html?

Sure, but why bother? Don't hold your breath :) What are you talking about? Maybe you want to upgrade Pod::Html, I have an old 1.1502, I don't get what you get

There are many alternatives to Pod::Html like Pod::Simple::... Pod::Simple::HTML, Pod::Simple::HTMLBatch, Pod::POM::View::HTML/Pod::POM::Web, Perl::Tidy

use Perl::Tidy(); my $html = ""; Perl::Tidy::perltidy( source => $modfile, destination => \$html, argv => " -html ", stderr => File::Spec->devnull, ); return $html;

In the meantime, how can I workaround this shortcoming?

Well, I would stop using XML::Parser as its very low level. I would use XML::Twig or XML::LibXML


In reply to Re: POD translation to HTML bug? (pod2html) by Anonymous Monk
in thread POD translation to HTML bug? by ajl52

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.