ecto (Version 4)
for macOS 10.12 (Sierra) and macOS 10.13 (High Sierra)

ecto plugins

Mon, 2008-01-07

HTML to wiki converter

 

From Miles Metcalfe, a Perl script that converts HTML to wiki. It uses http://search.cpan.org/~diberri/HTML-WikiConverter-0.61/lib/HTML/WikiConverter.pm with the Confluence dialect installed.

#!/usr/bin/env perl
# Confluencer.pl
use HTML::WikiConverter;
my $wc = new HTML::WikiConverter( dialect => 'Confluence' );

my $ecto = do { local $/; <> };
print $wc->html2wiki( $ecto );

Save the code to a file ending in '.pl' and put the file in ~/Library/Application Support/ecto3/scripts/. Restart ecto and you'll find it under the Scripts submenu of the Tools menu.