Skip to content

Conversation

@brson
Copy link
Collaborator

@brson brson commented Apr 10, 2018

Scan all the way to newline. This makes some edge cases
parse in accordance with upstream cmark.

Looks like this might have been a typo in the grammar.

I've confirmed this doesn't regress comrak against the cm spec (it has 5 existing failures), though I don't know where the gfm spec source is.

Scan all the way to newline. This makes some edge cases
parse in accordance with upstream cmark.
"<p>a\n-b\n-c</p>\n",
|opts| opts.ext_table = true,
);
}
Copy link
Collaborator Author

@brson brson Apr 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would previously parse as a 1-column table with header "a" and 1 row of content, "-c", parsing "-b" as a valid table marker row.

@kivikakk
Copy link
Owner

This is perfect, thank you! Indeed, this now matches https://github.com/github/cmark/blob/bf28ef6e7e949157ab85a5e4a3ea9107e17497b9/extensions/ext_scanners.re#L41 correctly.

The Travis CI build checks against the current version of the CM spec we're tracking, including the GFM specs; see https://travis-ci.org/kivikakk/comrak/jobs/364882300. I might need to pull a later version of upstream in to see what new failures are.

@kivikakk kivikakk merged commit fd775bc into kivikakk:master Apr 11, 2018
@kivikakk
Copy link
Owner

kivikakk commented Apr 13, 2018

I might need to pull a later version of upstream in to see what new failures are.

I've pulled in the latest upstream and matched the cmark implementation changes in c7ac6ac (wrong project) 5d093fd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants