Skip to content

Image alt broken when \ and new line present #3748

@masylum

Description

@masylum

Marked version:

Describe the bug
Weird parsing of img alt when containing \ and line breaks.

To Reproduce
If you have a \ followed by a new line, it fails to parse the image alt.

Example:

This does not work:
![foo\
bar](https://example.com/image)

This works:
![foo
bar](https://example.com/image)

This also works:
This does works:
![foo\ bar](https://example.com/image)

Tested in all marked versions.

Expected behavior
It should parse.

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