Skip to content
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

Add updated CommonMark Tests #918

Merged
merged 4 commits into from
Apr 27, 2022
Merged

Add updated CommonMark Tests #918

merged 4 commits into from
Apr 27, 2022

Conversation

mansona
Copy link

@mansona mansona commented Apr 22, 2022

Hey folks 👋 I'm opening this PR to try to open a conversation about supporting the CommonMark spec. I know by running these tests that there is a long way to go with some of these edge-cases but I thought I would open up the conversation at least 👍

This is mostly continuing on from conversations like #620 just now a few years later when the wider community has moved forward a little bit

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5307 lines exceeds the maximum allowed for the inline comments feature.

@codeclimate
Copy link

codeclimate bot commented Apr 22, 2022

Code Climate has analyzed commit f191442 and detected 0 issues on this pull request.

View more on Code Climate.

@tivie
Copy link
Member

tivie commented Apr 25, 2022

Ugh. Lots of tests failing. 😅

Thank you for your contribution. I think for version 3.0 we should try to comply with commonmark spec as much as possible. For most part, showdown is already compliant (lists are the only exception, i think).

@tivie tivie changed the base branch from master to develop April 25, 2022 08:23
@mansona
Copy link
Author

mansona commented Apr 27, 2022

Yea I guess there are quite a lot of failing tests, but on the plus side there are a lot more passing tests 🎉

If commonmark compliance is something that we care about maybe I could start picking away at some of these tests? I would imagine that a lot of them could be grouped into particular issues that we could start addressing 👍

@tivie tivie merged commit fcbccd6 into showdownjs:develop Apr 27, 2022
@tivie
Copy link
Member

tivie commented Apr 27, 2022

The good news is that a big chunk of the tests were failing because of formatting issues (such as tabs being replaced with arrows for visibility, or html styling stuff such as newlines, which are invisible in html, added after <li> tags.

The bad news is that some stuff will actually reduce compliance with the github spec. Which is weird since github is a superset of markdown. 🤷

@tivie tivie mentioned this pull request Apr 28, 2022
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