-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix comment prefix and suffix #328
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
Conversation
Previously, `<!--` and `--> were part of comments nodes. this deferred from the HAST specification. This PR removed the prefix when comments are found in markdown, and thus doesn’t need to replace them when rendering to JSX, but rather prefixes and suffixes them. Closes GH-312.
|
This pull request is automatically deployed with Now. |
silvenon
left a comment
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! Could you add a test for this?
|
Seeing how I missed the |
Co-Authored-By: wooorm <tituswormer@gmail.com>
Co-Authored-By: wooorm <tituswormer@gmail.com>
|
Good catch! Rather not have it in this PR, but posted it in #338 (comment). |
|
@silvenon Fixed! |
Co-Authored-By: wooorm <tituswormer@gmail.com>
|
@silvenon Sure, done! |
|
Thanks! |
Previously,
<!--and-->were part of comments nodes.this deferred from the HAST specification.
This PR removed the prefix when comments are found in markdown, and
thus doesn’t need to replace them when rendering to JSX, but rather
prefixes and suffixes them.
Closes GH-312.