- search.cpan.org is not CPAN, it is the official search engine, but there are others, like Kobesearch, MetaCPAN
- PAUSE does not create html, see for yourself http://github.com/andk/pause
- don't put an images directory in your package, use File::ShareDir and File::ShareDir::Install instead
- A POD parser can do anything :) so yes, this is trivial to implement, but only practical if it is based on standard tools like File::ShareDir, say
=for image dist_file( 'File-ShareDir', 'images/foo.jpg' )
=for image module_file( 'File::ShareDir', 'images/foo.jpg' )
=for image class_file( 'File::ShareDir', 'images/foo.jpg' )
It would also be trivial to assume a dist or module or class based on the current dist/file being processed (also assuming a standard naming convention, which isn't universally followed), but it doesn't have to :)
And it would also be trivial to update Pod::Simple::HTML and maybe Pod::Html to handle =for image (?:dist|module|class)_file\( (?:'[^']+\'|\s+|,)+ \) for end users (me, you)
Not sure how search.cpan.org works exactly, but if it doesn't install modules (and it appears it doesn't) or run Makefile.PL && make (maybe it doesn't), then CPAN::Meta::Spec ( http://module-build.sourceforge.net/META-spec-v1.4.html ) might need to be updated to determine the sharedir info
- you can preview/test your pod with search.cpan.org online pod previewer http://search.cpan.org/pod2html
- Try it with inlined img/pod file to cpan :) pod and images/Re^2: Inline images in POD, it worked in my test (with modern browser)
pod-img.pod - example embedding html data uri image in pod
=head1 THE IMAGE
=for html <p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||