Skip to content

Clarify that link text may contain a line ending #832

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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