-
Notifications
You must be signed in to change notification settings - Fork 63
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 #62
Update remark #62
Conversation
@wooorm thanks for this, and thanks for your work on Previously |
That’s correct, the following markdown: <!--some eslint comment-->
<!--one more eslint comment-->
~~~js
code();
~~~ ...is turned into: {
"type": "root",
"children": [
{
"type": "html",
"value": "<!--some eslint comment-->"
},
{
"type": "html",
"value": "<!--one more eslint comment-->"
},
{
"type": "code",
"lang": "js",
"value": "code();"
}
]
} I’ll update the PR somewhere today! |
Done! Let me know if there’s some code-style I need to fix! |
Do we want to support the line comments as well? (e.g., Probably a better question for @btmills, anyway. |
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.
@wooorm this is great, thank you!
I just tested, and the dependency changes in this PR result in a 27% reduction in node_modules
size for a production install, down to 1.1MB from 1.5MB 🎉
@platinumazure that's a good point, right now the transform doesn't support eslint-disable-next-line
since it has to be a line comment. That would be a separate change from this PR, so I'll merge without it, but it's worth considering whether the plugin needs to support eslint-disable-next-line
in an HTML comment.
Awesome! 👍 |
Hi folks! 👋
I’ve updated remark! This does come with a change in HTML comments, so I had to use a loop around the
getComments
functionality.I also removed
remark
directly. Rather, I addedunified
andremark-parse
, which is a bit smaller, meaning faster installs.Let me know if I should fix-up some code-style!