![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
remark-remove-comments
Advanced tools
Remark plugin to remove HTML comments from the processed output
Remark plugin to remove HTML comments from the processed output.
This package is ESM only. In Node.js (version 14.14+, or 16.0+, 18.0+, 19.0+), install with npm:
npm install remark-remove-comments
Say we have the following file, example.md
:
# Hello World
This is a markdown file, with text in it.
<!-- But in this file there's a comment, like "TODO: fix 😅",
I don't want this to appear in the HTML output, it's just for me -->
And our script, example.js
, looks as follows:
import { readFileSync } from 'node:fs';
import remark from 'remark';
import removeComments from 'remark-remove-comments';
remark()
.use(removeComments)
.process(readFileSync('example.md', 'utf-8'), (err, file) => {
if (err) throw err;
console.log(String(file));
});
Now, running node example
yields:
# Hello World
This is a markdown file, with text in it.
remark().use(removeComments)
Removes every HTML node that matches this regex
FAQs
Remark plugin to remove HTML comments from the processed output
The npm package remark-remove-comments receives a total of 6,239 weekly downloads. As such, remark-remove-comments popularity was classified as popular.
We found that remark-remove-comments demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.