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
Update remark parse v8 #8140
Update remark parse v8 #8140
Conversation
Thanks for taking this over, hope you can make it work. Some |
@@ -4317,7 +4317,7 @@ This is [an example](http://example.com 'Example') link. | |||
|
|||
[This link](http://example.com) has no title attr. | |||
|
|||
This is [an example][id] reference-style link. | |||
This is [an example] [id] reference-style link. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change matches the expectation in the commonmark spec: https://spec.commonmark.org/dingus/?text=%5Bfoo%5D%20%5Bbar%5D%0A%0A%5Bbar%5D%3A%20%2Furl%20%22title%22%0A
[an example]
and [id]
appear as two separate shortcut reference links with a text
node between them: https://astexplorer.net/#/gist/d69f5a227e2cbde3f43f0a639bee165c/822b531c252c162faba78e38607db73ef72886d5
Previously they would have appeared as a single full
reference style link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this also fix #8226 probably?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sure does! I just pushed an update to include shortcut style links in this test case. I'll add another test case for that issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I'm linking that issue to this PR then.
The |
I'll do today. |
#4122 is fixed, need test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your great work!
To do after merging: #8630 |
Great work! Thanks! |
I had previously opened another branch for this, but noticed that @fisker had already done a good deal of work to resolve some of the issues with upgrading remark-parse, so based my branch off of theirs.
docs/
directory)changelog_unreleased/*/pr-XXXX.md
file followingchangelog_unreleased/TEMPLATE.md
.✨Try the playground for this PR✨
Or try this branch locally:
npm install saramarcondes/prettier#update-remark-parse-v8