executablebooks / mdformat-myst

Mdformat plugin for MyST compatibility
MIT License
7 stars 2 forks source link

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

Open devmcp opened 1 year ago

devmcp commented 1 year ago

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:
Hello mdformat[^myref]


### Reproduce the bug

See above

### List your environment

_No response_
welcome[bot] commented 1 year ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

hukkin commented 1 year ago

Thanks for the issue!

This is an issue with MyST syntax and mdformat-myst only, so I've moved the issue.