strip-markdown
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.
Install
npm:
npm install strip-markdownUse
var remark = require('remark')
var strip = require('strip-markdown')
remark()
.use(strip)
.process('Some *emphasis*, **importance**, and `code`.', function(err, file) {
if (err) throw err
console.log(String(file))
})Yields:
Some emphasis, importance, and code.
API
remark().use(strip)
Plugin remove Markdown formatting.
- Removes
html,code,horizontalRule,table,yaml,toml, and their content - Render everything else as simple paragraphs without formatting
- Uses
alttext for images
Security
Use of strip-markdown does not involve rehype (hast)
or user content so there are no openings for cross-site scripting (XSS)
attacks.
Contribute
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.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
