| 1 | package Markdent::Dialect::Theory::SpanParser; | ||
| 2 | |||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 4 | our $VERSION = '0.39'; | |
| 8 | |||
| 9 | 4 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 4 | with 'Markdent::Role::Dialect::SpanParser'; | |
| 12 | |||
| 13 | around _build_escapable_chars => sub { | ||
| 14 | 22 | ▶ | my $orig = shift; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 15 | 22 | my $self = shift; | |
| 16 | 22 | my $chars = $self->$orig(); | |
| 17 | |||
| 18 | 22 | return [ @{$chars}, qw( | : ) ]; | |
| 19 | 4 | }; | |
| 20 | |||
| 21 | 4 | 1; | |
| 22 | |||
| 23 | # ABSTRACT: Span parser for Theory's proposed Markdown extensions | ||
| 24 | |||
| 25 | __END__ | ||
| 26 | |||
| 27 | =pod | ||
| 28 | |||
| 29 | =encoding UTF-8 | ||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | Markdent::Dialect::Theory::SpanParser - Span parser for Theory's proposed Markdown extensions | ||
| 34 | |||
| 35 | =head1 VERSION | ||
| 36 | |||
| 37 | version 0.39 | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | This role is applied to a L<Markdent::Parser::SpanParser> in order to allow | ||
| 42 | the pipe (|) and colon (:) characters to be backslash-escaped. These are used | ||
| 43 | to mark tables, so they need to be escapeable. | ||
| 44 | |||
| 45 | =head1 ROLES | ||
| 46 | |||
| 47 | This role does the L<Markdent::Role::Dialect::SpanParser> role. | ||
| 48 | |||
| 49 | =head1 BUGS | ||
| 50 | |||
| 51 | See L<Markdent> for bug reporting details. | ||
| 52 | |||
| 53 | Bugs may be submitted at L<https://github.com/houseabsolute/Markdent/issues>. | ||
| 54 | |||
| 55 | I am also usually active on IRC as 'autarch' on C<irc://irc.perl.org>. | ||
| 56 | |||
| 57 | =head1 SOURCE | ||
| 58 | |||
| 59 | The source code repository for Markdent can be found at L<https://github.com/houseabsolute/Markdent>. | ||
| 60 | |||
| 61 | =head1 AUTHOR | ||
| 62 | |||
| 63 | Dave Rolsky <autarch@urth.org> | ||
| 64 | |||
| 65 | =head1 COPYRIGHT AND LICENSE | ||
| 66 | |||
| 67 | This software is copyright (c) 2021 by Dave Rolsky. | ||
| 68 | |||
| 69 | This is free software; you can redistribute it and/or modify it under | ||
| 70 | the same terms as the Perl 5 programming language system itself. | ||
| 71 | |||
| 72 | The full text of the license can be found in the | ||
| 73 | F<LICENSE> file included with this distribution. | ||
| 74 | |||
| 75 | =cut | ||