Markdent::Role::BlockParser - A role for block parsers


Markdent documentation Contained in the Markdent distribution.

Index


Code Index:

NAME

Top

Markdent::Role::BlockParser - A role for block parsers

VERSION

Top

version 0.17

DESCRIPTION

Top

This role implements behavior shared by all block parsers

REQUIRED METHODS

Top

* $parse->parse_document(\$text)

This method takes a scalar reference to a markdown document and parses it for block-level markup.

ATTRIBUTES

Top

This roles provides the following attributes:

_span_parser

This is a read-only attribute. It is an object which does the Markdent::Role::SpanParser role.

This is required for all block parsers.

ROLES

Top

This role does the Markdent::Role::AnyParser and Markdent::Role::DebugPrinter roles.

BUGS

Top

See Markdent for bug reporting details.

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Markdent documentation Contained in the Markdent distribution.

package Markdent::Role::BlockParser;
BEGIN {
  $Markdent::Role::BlockParser::VERSION = '0.17';
}

use strict;
use warnings;

use namespace::autoclean;
use Moose::Role;

with 'Markdent::Role::AnyParser';

requires 'parse_document';

has _span_parser => (
    is       => 'ro',
    does     => 'Markdent::Role::SpanParser',
    init_arg => 'span_parser',
    required => 1,
);

1;

# ABSTRACT: A role for block parsers




__END__