Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 referencing footnote in another footnote #7

Open
nschloe opened this issue Aug 18, 2022 · 3 comments
Open

🐛 referencing footnote in another footnote #7

nschloe opened this issue Aug 18, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@nschloe
Copy link

nschloe commented Aug 18, 2022

Describe the bug

If the the Markdown file contains something like

[^a]: lorem
[^c]: ipsum [^a]

mdformat fails to format. While the above doesn't render well on GitHub either, mdformat should at least not abort.

Reproduce the bug

See above.

List your environment

No response

@nschloe nschloe added the bug Something isn't working label Aug 18, 2022
@hukkin hukkin transferred this issue from hukkin/mdformat Aug 18, 2022
@hukkin
Copy link
Contributor

hukkin commented Aug 18, 2022

Thanks for the issue!

It seems a vanilla mdformat installation doesn't error, so I presume you have mdformat-footnote installed. I moved the issue.

@nschloe
Copy link
Author

nschloe commented Aug 18, 2022

so I presume you have mdformat-footnote installed.

Yeah.

Btw, I find it a little weird to have the installation define mdformat behavior. I'd like to force the user to be more explicit, e.g., with

mformat --use-plugins=footnote,... 

Makes this kind of debugging easier as well.

@hukkin
Copy link
Contributor

hukkin commented Aug 18, 2022

There was a similar request from someone else some days ago. I can consider that.

Personally I don't find the current state too weird given this is how plugin systems of many other tools such as flake8 and pytest work.

@hukkin hukkin mentioned this issue Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants