Skip to content

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

@devmcp

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

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