Good idea, and an easy one to implement. I've called the program
html2wiki as you suggested, and it'll be available in the 0.22 release.
I've also attached the source.
Usage: html2wiki --dialect <dialect> [options] [<html-file>]
Options are:
--base-uri Base URI for relative links
--wiki-uri URI fragment for wiki links
--wrap-in-html Wrap input in <html> and </html>
It can read HTML from standard input, pipes, and files, and it writes
wiki markup to standard output. For example, to convert the file
input.html to MediaWiki markup, you'd say:
% ./html2wiki --dialect MediaWiki input.html
To save it to a file output.mw:
% ./html2wiki --dialect MediaWiki input.html > output.mw
Reading from pipes:
% cat input.html | ./html2wiki --dialect MediaWiki
Which is roughly equivalent to:
% ./html2wiki --dialect MediaWiki < input.html
Does that sound about right?
Best,
David Iberri
Message body not shown because it is not plain text.