Re: [PATCH v4 5/5] git-remote-mediawiki: Add preview subcommand into git mw.

2013-06-20 Thread Matthieu Moy
benoit.per...@ensimag.fr writes: > + for (@{ $html_tree->extract_links() }) { > + my ($link, $element, $attr) = @{ $_ }; > + my $url = url($link)->canonical; > + $element->attr($attr, URI->new_abs($url, $remote_url)); Actually, this breaks some relative lin

Re: [PATCH v4 5/5] git-remote-mediawiki: Add preview subcommand into git mw.

2013-06-20 Thread Matthieu Moy
benoit.per...@ensimag.fr writes: > +# @TODO : add documentation for verbose option I guess that's not applicable anymore. > +distant mediawiki and combined with a template retrieved from the mediawiki. s/distant/remote/ > +sub preview { > + my $wiki; > + my ($remote_url, $wiki_page_nam

[PATCH v4 5/5] git-remote-mediawiki: Add preview subcommand into git mw.

2013-06-20 Thread benoit . person
From: Benoit Person In the current state, a user of git-remote-mediawiki can edit the markup text locally, but has to push to the remote wiki to see how the page is rendererd. Add a new 'git mw preview' command that allows rendering the markup text on the remote wiki without actually pushing any