Skip to content

Long inline links reflowing is problematic #64

@gsliepen

Description

@gsliepen

If an inline link is too long, it might get reflowed in a suboptimal way. It happens when you have a line that looks like:

Some text with [a link](https://example.org/some-very-looooooooooooooooooooooooooooooooooooooooooooooooooong-link.html)

This gets reflowed like so:

Some text with [a link](
https://example.org/some-very-looooooooooooooooooooooooooooooooooooooooooooooooooong-link.html)

Some Markdown converters (like libtext-markdown-perl) don't like this, and will generate this HTML:

<p>Some text with [a link](
https://example.org/some-very-looooooooooooooooooooooooooooooooooooooooooooooooooong-link.html)</p>

I think the way it is reflowed is valid CommonMark, but it would be nicer for some tools, and arguably as well for a human reader, if the above example would be reflowed as:

Some text with
[a link](https://example.org/some-very-looooooooooooooooooooooooooooooooooooooooooooooooooong-link.html)

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