Skip to content

Links containing spaces are not parsed correctly #13

@autarch

Description

@autarch

Migrated from rt.cpan.org #92251 (status was 'open')

Requestors:

Attachments:

From pjf@cpan.org (@pjf) on 2014-01-18 08:12:01:

The markdown standard says that links can have an optional title, which must be enclosed in double quotes. However markdent considers anything past the first space in a URL to be the title, and cares not for quotes. This means a URL like:

[some text](http://example.com/Your Page.html)

results in a truncated URL of http://example.com/Your.

This should be a simple tweak to Markdent::Parser::SpanParser::_parse_uri_and_title(), but it appears that I can't brain today, so a patch is not yet included.

~ pjf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions