-
Notifications
You must be signed in to change notification settings - Fork 196
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
Do not allow reference link labels contain left brackets #402
Do not allow reference link labels contain left brackets #402
Conversation
Does this fix a Commonmark spec then? Can you run |
dart tool/stats.dart --update-files
I have updated the stat files by running |
We should not change the unit files case-by-case, they are meant to be an exact set of test cases from a single version of the commonmark specs. I'll look into bumping them. |
Sorry, I totally mis-remembered how we maintain the spec tests. @kevmoo can maybe confirm:
Then the unit files represent what the markdown package currently outputs, so that a clean checkout will always have 100% tests passing.
When someone improves compliance (like this PR), the unit file changes, and |
I'd have to re-learn, too – even though I wrote it! That sounds right, @srawlins |
Looks like the output files change, but the stats don't change – so equally broken it seems? |
So this change seems to make things less broken – but it's still broken.
According to spec, this is what we should see. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take the PR because it is strictly better than what we have today 😁. To pass commonmark 545, we just need to also change parsing of the link reference (in addition to the reference link, which you solved).
Thanks!
Fix: #335