On Thu Feb 09 08:14:53 2006, guest wrote:
Show quoted text> For the conversion in the phpWiki dialect the html '<br><br>' should be
> converted in '%%% %%%'
>
> Now the converter make '%%%%%%' . So phpwiki desn't understand it.
I've patched HTML::WikiConverter::PhpWiki; the fix will be available in
version 0.51 of that module when it's released. For now, use the web
interface (
http://diberri.dyndns.org/html2wiki.html), which always uses
the latest development versions of the dialect modules.
I'm aware of one edge case that the bugfix doesn't handle. HTML comments
wedged between line breaks will give the wrong output with
comment-stripping enabled (i.e. strip_comments=>1):
use Test::More tests => 1;
use HTML::WikiConverter;
my $wc = new HTML::WikiConverter(
dialect => 'PhpWiki',
strip_comments => 1
);
is( $wc->html2wiki("<br><!--comment--><br>"), "%%% %%%" );
I'll get around to fixing this later. I don't see it as terribly
important as I doubt HTML comments are common in HTML destined to be
converted into wiki markup.
-- David Iberri