strip-markdown-math

3.0.3 • Public • Published

strip-markdown

Build Coverage Downloads Chat Sponsors Backers

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-markdown

Usage

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 alt text 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.

License

MIT © Titus Wormer

Readme

Keywords

Package Sidebar

Install

npm i strip-markdown-math

Weekly Downloads

2

Version

3.0.3

License

MIT

Unpacked Size

7.72 kB

Total Files

4

Last publish

Collaborators

  • scaffrey