logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Markdent::Parser::SpanParser - Span parser for standard Markdown

Author

       Dave Rolsky <autarch@urth.org>

Bugs

       See Markdent for bug reporting details.

       Bugs may be submitted at <https://github.com/houseabsolute/Markdent/issues>.

       I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".

Description

       This class parses spans for the standard Markdown dialect (as defined by Daring Fireball and mdtest).

Methods

       This class provides the following methods:

   Markdent::Parser::SpanParser->new(handler=>$handler)
       Creates a new span parser object. You must provide a span parser object.

   $span_parser->extract_link_ids(\$markdown)
       This method takes a reference to a markdown string and parses it for link ids.  These are removed from
       the document and stored in the span parser for later use.

   $span_parser->parse_block(\$block)
       Parses a block for span-level markup.

Name

       Markdent::Parser::SpanParser - Span parser for standard Markdown

Roles

       This class does the Markdent::Role::SpanParser, Markdent::Role::AnyParser, and
       Markdent::Role::DebugPrinter roles.

Source

       The source code repository for Markdent can be found at <https://github.com/houseabsolute/Markdent>.

Version

       version 0.40

See Also