-
-
Notifications
You must be signed in to change notification settings - Fork 170
Sync with cmark-gfm-0.29.0.gfm.7 #318
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
Sync with cmark-gfm-0.29.0.gfm.7 #318
Conversation
Most of the changes from .6 to .7 were already incorporated.
|
@kivikakk you're right, you already added just about everything from .6 to .7 💯 . I found one minor missing change (the re-addition of And I fixed some failures that should be working for this version. Add anything that I may have missed for this version upgrade. But we might be able to call this particular upgrade done? 🤔 🤞 |
|
Thanks so much for this as always, @digitalmoksha!
Having had a look through the diffs, I think so! I'm now looking forward from here:
Everything remaining is pretty minor, and I'm happy to divide it up in whatever way you like. |
|
Yeah I was noticing that some of the changes added to 9-10 were removed in 10-11. Would you be up for tackling 8-9, since you recently added the sourcepos code and know auto link. I can tackle 9-11. I have to admit I'm a little disappointed in the nested emphasis code - that directly breaks running against the CommonMark specs. But I haven't yet looked at why they did that. |
I'd be happy to! Sometime in the next day or two.
It's a bit of an interesting one. I don't really understand the motivation myself: github/cmark-gfm@5c75d23 There are some changes to how the tight/non-tight distinction is respected in CommonMark/plaintext output, which I would assume is actually responsible for the speed up mentioned in the commit message. The HTML output timing didn't change because there was no We had to deal with this change in the |
|
In this respect, it's kind of funny — The |
|
I just started looking into the autolink sourcepos stuff, and pretty quickly remembered why we don't do it. I had actually gone and mostly implemented it anyway, and then things started getting hairy when combining options. The autolink tests describe it: Lines 57 to 79 in 8eac2c3
It's worth noting that That said, its autolink sourcepos is incorrect: The These issues in |
Yeah it's bizarre, there doesn't seem to be a real reason to change the HTML renderer, and it breaks compatibility. Not cool. Same here, had to deal with it when upgrading
Yeah, funny/not funny 😄. I'm against deviating from the CommonMark spec. It's bad enough we're not using 0.30 (I know, there aren't that many real changes, but it's been 2 years). |
Oof - I see how that can get complicated real fast. I've been able to put together the So we might be able to go ahead and say that we're synced up to 11, while the autolink is worked on. As you said, we've already got the footnote changes, so I don't really see anything else important in Interesting, I don't actually see any tests in |
Amazing, thank you so much! And yes, I think that's probably the way to go.
There are some; they're kind of hidden since they're part of the API tests. See https://github.com/github/cmark-gfm/blob/2d65cd3c4bfbbdddc7accefc76392c16bb0cfb6d/api_test/main.c#L996-L1130. |
Most of the changes from
gfm.6togfm.7have been previously incorporated. This adds one minor thing that was missing, and fixes footnote handling to properly pass theregressions.txttests, which should be passing at this version.