=head1 NAME

CommonMark::Parser - Push parser interface


    my $parser = CommonMark::Parser->new;
    my $doc = $parser->finish;


C<CommonMark::Parser> provides a push parser interface to parse CommonMark

=head2 new

   my $parser = CommonMark::Parser->new( [$options] );

Creates a parser object. C<$options> is a bit field containing the parser
options. It defaults to zero (C<OPT_DEFAULT>). See
L<CommonMark/"Parser options">.

=head2 feed


Feeds a part of the input Markdown to the parser.

=head2 finish

    my $doc = $parser->finish;

Parses a CommonMark document from the strings added with C<feed> returning
the L<CommonMark::Node> of the document root.


This software is copyright (C) by Nick Wellnhofer.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.