Skip to content

Conversation

@wooorm
Copy link
Member

@wooorm wooorm commented Nov 22, 2018

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.

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.
@vercel
Copy link

vercel bot commented Nov 22, 2018

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Copy link
Contributor

@silvenon silvenon left a 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?

@silvenon
Copy link
Contributor

Seeing how I missed the var usage, you could also add no-var: error to ESLint configuration. 😅

timneutkens and others added 2 commits November 25, 2018 19:40
Co-Authored-By: wooorm <tituswormer@gmail.com>
Co-Authored-By: wooorm <tituswormer@gmail.com>
@wooorm wooorm mentioned this pull request Nov 25, 2018
@wooorm
Copy link
Member Author

wooorm commented Nov 25, 2018

Good catch! Rather not have it in this PR, but posted it in #338 (comment).

@wooorm
Copy link
Member Author

wooorm commented Nov 25, 2018

@silvenon Fixed!

Co-Authored-By: wooorm <tituswormer@gmail.com>
@wooorm
Copy link
Member Author

wooorm commented Nov 25, 2018

@silvenon Sure, done!

@silvenon silvenon merged commit 022b2c6 into master Nov 25, 2018
@silvenon silvenon deleted the fix-comments branch November 25, 2018 21:09
@silvenon
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Comment bug (spec)

4 participants