Skip to content

mdformat incorrectly removes link references that are only used in admonitions #22

Description

@devmcp

Describe the bug

context
When I run mdformat on the following:

```{note}
Hello mdformat[^myref]
```

[^myref]: my ref here

expectation
I expected nothing to occur.

bug
But instead the reference gets removed leaving:

```{note}
Hello mdformat[^myref]
```

Reproduce the bug

See above

List your environment

No response

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions