Skip to content

unused link definitions are not present in parser output #435

Closed

Description

@Gozala

Please consider following example:

# Test
[ref-link][link-id]
[shortcut]
[collapse][]


[link-id]:https://my.link/foo "my link"
[shortcut]:./shortcut
[collapse]:https://my.link/collapse
[obsolete]:https://my.link/obsolete-link

Last link definition (obsolete) is not present in the parser output in any way. In my use case I would still like to know about such links so I could surface those in some way. Maybe there could be an option for the parser which would emit events for link definitions when user opts-in ?

Even better (but more intrusive) alternative might be to make Tag::Links refer to it's definition. It could be either Inline, Autolink, Emailor a namedDefinition`. Although it does not appear to fit well current design.

Activity

  1. ScottAbbey commented on Mar 30, 2020

    @ScottAbbey
    Collaborator

    Is this the same as #423?

  2. changed the title [-]unusef link definitions are not present in parser output[/-] [+]unused link definitions are not present in parser output[/+] on Apr 6, 2020
  3. Gozala commented on Apr 6, 2020

    @Gozala
    ContributorAuthor

    I don't specifically care about:

    Is it possible to know that the reference definition appeared between the two paragraphs? Worst case scenario, I will just parse this information out of the file myself.

    On the other hand I do care about knowing reference definition regardless if it has being used. That being said I think this could be closed as duplicate.

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