strip-markdown-math
v3.0.3
Published
Remove markdown formatting and remove math
Downloads
9
Readme
strip-markdown
Remove Markdown formatting with remark. This essentially removes everything but paragraphs and text nodes.
This is one of the first remark plugins, before prefixing with
remark-got cool.
Installation
npm:
npm install strip-markdownUsage
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)
Modifies remark to expose plain-text.
- Removes
html,code,horizontalRule,table,yaml,toml, and their content - Render everything else as simple paragraphs without formatting
- Uses
alttext for images
Contribute
See contributing.md in remarkjs/remark for ways to get
started.
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.
