After much reading of perldoc perlpod
and testing, the following things are apparent:
- According to spec,
=begin html
segments can be translated safely to=for html
segments. - However, this may only occur when the body of the segment contains segments that are grouped in paragraphs. So
foo\nbar
can be translated, butfoo\n\nbar
cannot. - The module that is doing the transformation from
=begin
to=for
, when seeing a double\n
in its body, refuses to emit=for
, and instead, reverts to emitting=begin
.
Given what number 3 Here is, If you want to force it to emit =begin html
, simply spicing it up with a few extra \n
's will do the trick.
However, the problem remains, that for whatever reason, what appears to be valid POD format given, is not rendering as intended.
Either
- A. The Pod2HTML layer is not coded right to respond to
=for
( in which case, a few extra\n
's to force an=begin
may help. - B. There's a security level thats preventing you from using complex HTML ( which may entail hyperlinks in images, which could be an XSS security threat )
If the problem is B, then you're not going to get around that by being tricky.
Though I assure you, displaying images IS doable, I do it myself