Skip to content

Clarify that link text may contain a line ending #832

@ongardie

Description

@ongardie

I was looking through the spec to try to make sure that link text is allowed to have a line break. I think this is the case, but I couldn't pinpoint where in the spec it's stated. It'd be nice to include test cases showing that link text may contain a single line ending.

This is obviously OK:

[foo1 bar](https://example.org)

This one should be OK:

[foo2
bar](https://example.org)

This one is not OK:

[foo3

bar](https://example.org)

(VS Codium with rust-analyzer doesn't highlight such links in Rust doc comments, and I'm trying to track down where this goes wrong.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions