Skip to content

[FEATURE] Add image URLs to link reference definitions #71

@NfNitLoop

Description

@NfNitLoop

This is sortof a follow up to #15. I'm still using this library years later! 😊

Link reference definitions are working great, except for one cumbersome edge case, images.

Given this input:

<a href="VERY_LONG_URL"><img src="VERY_LONG_URL"/></a>

With useLinkReferenceDefinitions enabled, we get this output:

[![](VERY_LONG_URL)][1]

[1]: VERY_LONG_URL

The VERY_LONG_URL is duplicated, when we could have instead used a link reference for both:

[![][1]][1]

[1]: VERY_LONG_URL

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    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