You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not entirely unexpected, the Markdown parser is most favorably described as a proof of concept bolted onto the Gherkin parser. And the problem seems to come from this:
The GherkinInMarkdownTokenMatcher will consider all lines that aren't recognised as a special token as Empty. The reason for this is that Markdown documents will typically have lines that have nothing to do with Gherkin - they are just prose.
From v32, Gherkin is getting different results when parsing Markdown, specifically for the description.
This surfaced in the compatibility kit when trying to upgrade to v32:
The critical parts are still fine - the same pickles come out compared to v31 - but there is now a description being picked up:
For reference the sample file being parsed is:
https://github.com/cucumber/compatibility-kit/blob/main/devkit/samples/markdown/markdown.feature.md
So it looks like we are picking up the first row of that table as a description, where before there was none.
The text was updated successfully, but these errors were encountered: