-
Notifications
You must be signed in to change notification settings - Fork 94
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
WIP: Test also CommonMark serialization #3331
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
susnux
added
tests
If you write them we ♥ you
2. developing
format: markdown
do not merge
labels
Oct 28, 2022
susnux
force-pushed
the
feat/test-commonmark
branch
from
November 17, 2022 18:05
39037a7
to
3f8f45e
Compare
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
As two different markdown strings can be semantically the same, we can test if the resulting rendered HTML are syntactically equal. Currently about hundred test cases fail because of a known limitation of `prosemirror-markdown` not able to serialize nested marks correctly, see ProseMirror/prosemirror-markdown#82 Signed-off-by: Ferdinand Thiessen <[email protected]>
The commonmark parsing tests are already done by markdownit, as suche we only need to test serializing. And of cause parsing of markdown extensions we added. The current "CommonMark" testing also had quite a lot of hacks as even if we are commonmark compatible we do not yield the same html representation (html is only a interim stage to tiptap). Signed-off-by: Ferdinand Thiessen <[email protected]>
juliusknorr
force-pushed
the
feat/test-commonmark
branch
from
November 30, 2023 08:06
3f8f45e
to
c804604
Compare
This was referenced Mar 12, 2024
I do not think we need this anymore ❓ |
I think we can revive when there is some more time to dive into the further markdown differences 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
As two different markdown strings can be semantically the same, we can test if the resulting rendered HTML are syntactically equal.
Currently about hundred test cases fail because of a known limitation of
prosemirror-markdown
not able to serialize nested marks correctly, see ProseMirror/prosemirror-markdown#82So the CI test results can be used as a reference for identifiying problem for #2702 and also what needs to be fixed so that markdown files stay unchanged (#593)