Skip to content

Spaces in image path creating incorrect image source and title #484

@facelessuser

Description

@facelessuser

It appears that when given an image ![alt](a b.txt) that Python Markdown will create an element <img alt="alt" src="a" title="b.txt" />. I was reading the Markdown spec, and it states that titles should be enclosed in quotes: http://daringfireball.net/projects/markdown/syntax#img.

While I am not sure if the spaces should or should not be allowed in an image path, I get the impression that Python Markdown in this case should not be grabbing b.txt for the title as it is not enclosed in quotes.

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