Skip to content

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

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

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

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions