Text-Markup

 view release on metacpan or  search on metacpan

lib/Text/Markup.pm  view on Meta::CPAN

}

sub formats {
    sort keys %REGEX_FOR;
}

sub format_matchers { %REGEX_FOR }

sub new {
    my $class = shift;
    bless { default_encoding => 'UTF-8', @_ } => $class;
}

sub parse {
    my $self = shift;
    my %p = @_;
    my $file = $p{file} or croak "No file parameter passed to parse()";
    croak "$file does not exist" unless -e $file && !-d _;

    my $parser = $self->_get_parser(\%p);
    return $parser->(



( run in 0.319 second using v1.01-cache-2.11-cpan-65fba6d93b7 )