
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
strip-markdown
Advanced tools
remark plugin remove markdown formatting. This essentially removes everything but paragraphs and text nodes.
This is one of the first remark plugins, before prefixing with
remark-got cool.
This plugin is ready for the new parser in remark
(remarkjs/remark#536).
No change is needed: it works exactly the same now as it did before!
This package is ESM only:
Node 12+ is needed to use it and it must be imported instead of required.
npm:
npm install strip-markdown
import {remark} from 'remark'
import strip from 'strip-markdown'
remark()
.use(strip)
.process('Some *emphasis*, **importance**, and `code`.')
.then((file) => {
console.log(String(file))
})
Yields:
Some emphasis, importance, and code.
This package exports no identifiers.
The default export is stripMarkdown.
unified().use(stripMarkdown[, options])Plugin remove markdown formatting.
html (note), code, horizontalRule, table, yaml,
toml, and their contentalt text for imagesUse of strip-markdown does not involve rehype (hast)
or user content so there are no openings for cross-site scripting (XSS)
attacks.
See contributing.md in remarkjs/.github for ways
to get started.
See support.md for ways to get help.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.
FAQs
remark plugin to remove markdown formatting
The npm package strip-markdown receives a total of 188,645 weekly downloads. As such, strip-markdown popularity was classified as popular.
We found that strip-markdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.