This is an automated email from the git hooks/post-receive script. js pushed a commit to annotated tag debian/0.6.1-1 in repository libpandoc-wrapper-perl.
commit 91e2e25e771b2b3e5a617fe239ca7dd023306981 Author: Jakob Voss <[email protected]> Date: Tue Oct 17 20:43:33 2017 +0200 0.6.1 --- META.json | 1 + README.md | 11 ++++++----- lib/Pandoc.pm | 11 ++++++----- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/META.json b/META.json index def3933..085953a 100644 --- a/META.json +++ b/META.json @@ -64,6 +64,7 @@ "version" : "0.6.0", "x_contributors" : [ "Benct Philip Jonsson <[email protected]>", + "Edward Betts <[email protected]>", "Jakob Voß <[email protected]>" ] } diff --git a/README.md b/README.md index 4d4ebd2..0752b6f 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ Pandoc - wrapper for the mighty Pandoc document converter # utility methods to parse abstract syntax tree (requires Pandoc::Elements) $doc = pandoc->parse( markdown => '*hello* **world!**' ); $doc = pandoc->file( 'example.md' ); + $doc = pandoc->file; # read Markdown from STDIN # DESCRIPTION @@ -170,12 +171,12 @@ Additional shortcut methods such as `to_html` are available: Method `convert` should be preferred for simple conversions unless you want to modify or inspect the parsed document in between. -## file( $filename \[, @arguments \] ) +## file( \[ $filename \[, @arguments \] \] ) -Parse from a file to a [Pandoc::Document](https://metacpan.org/pod/Pandoc::Document) object. Additional pandoc options -can be passed, for instance use HTML input format (`@arguments = qw(-f html)`) -instead of default markdown. This method Requires at least pandoc version -1.12.1 and the Perl module [Pandoc::Elements](https://metacpan.org/pod/Pandoc::Elements). +Parse from a file (or STDIN) to a [Pandoc::Document](https://metacpan.org/pod/Pandoc::Document) object. Additional pandoc +options can be passed, for instance use HTML input format (`@arguments = qw(-f +html)`) instead of default markdown. This method requires at least pandoc +version 1.12.1 and the Perl module [Pandoc::Elements](https://metacpan.org/pod/Pandoc::Elements). ## require( $version\_requirement ) diff --git a/lib/Pandoc.pm b/lib/Pandoc.pm index 03a5f52..3cf7439 100644 --- a/lib/Pandoc.pm +++ b/lib/Pandoc.pm @@ -331,6 +331,7 @@ __END__ # utility methods to parse abstract syntax tree (requires Pandoc::Elements) $doc = pandoc->parse( markdown => '*hello* **world!**' ); $doc = pandoc->file( 'example.md' ); + $doc = pandoc->file; # read Markdown from STDIN =head1 DESCRIPTION @@ -454,12 +455,12 @@ Additional shortcut methods such as C<to_html> are available: Method C<convert> should be preferred for simple conversions unless you want to modify or inspect the parsed document in between. -=head2 file( $filename [, @arguments ] ) +=head2 file( [ $filename [, @arguments ] ] ) -Parse from a file to a L<Pandoc::Document> object. Additional pandoc options -can be passed, for instance use HTML input format (C<@arguments = qw(-f html)>) -instead of default markdown. This method Requires at least pandoc version -1.12.1 and the Perl module L<Pandoc::Elements>. +Parse from a file (or STDIN) to a L<Pandoc::Document> object. Additional pandoc +options can be passed, for instance use HTML input format (C<@arguments = qw(-f +html)>) instead of default markdown. This method requires at least pandoc +version 1.12.1 and the Perl module L<Pandoc::Elements>. =head2 require( $version_requirement ) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libpandoc-wrapper-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits
