---
name: "Markdent::Parser::SpanParser"
section: "3pm"
platform: "linux"
package: "libmarkdent-perl"
version: "0.40-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Markdent::Parser::SpanParser"
---

# Markdent::Parser::SpanParser(3pm)

Span parser for standard Markdown

## NAME

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

## VERSION

version 0.40

## 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.

## ROLES

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

## 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"`.

## SOURCE

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

## AUTHOR

Dave Rolsky \<autarch@urth.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by Dave Rolsky.

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

The full text of the license can be found in the *LICENSE* file included with this distribution.
