-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Use footnote name for reference id #300
Use footnote name for reference id #300
Conversation
46a89b7
to
358de5d
Compare
Thanks so much for this! I've adjusted the AST format to use a struct rather than using a tuple. That's also fixed the example build failure in 46a89b7. There's still a number of CI tests failing -- would you be able to adjust them? |
Oh cool, great idea on the struct. Yes I can update the tests. Still a couple more things we need to solve. Percent encoding of footnote names, and detection of footnote names that begin with So this
should yield this
according to Not sure if I'll get a chance tomorrow, but hopefully over the next couple of days. |
@kivikakk wondering if I could ask a question, I'm still a newbie with Rust. I notice in Why not use a I need to change |
I see that in |
Would it be worth updating to the latest |
@kivikakk I like to keep PRs as small and focused as possible. I'll create another PR to handle encoding the footnote name, and also a capitalization issue. So I think this is ready for a review if you have time. It passes the latest footnote spec from upstream, except for encoding the name. |
It's usually one of two reasons in Comrak: performance, or to match upstream behaviour where it does checks at a byte level instead of character. (Fwiw, you'll either want In the case of |
To be honest, I don't have time for as thorough a review as I'd like, and that seems unlikely to change in the short- to medium-term future. But I've looked through, and it seems sound. I'll run fuzzing on it for a while after to be sure, but I'm happy with these changes — thank you! |
Completely understand! Thanks for getting this merged 🚀 |
For example
should generate