markdown-it-remove
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

markdown-it-remove

Remove Markdown syntax.

# markdown-it!
## markdown-it!
### markdown-it!
[GitHub](https://github.com/)
`inline`
![img](https://github.com/)

markdown-it!
markdown-it!
markdown-it!
GitHub
inline

Installation

npm i markdown-it-remove

Import Plugin

const MarkdownIt = require('markdown-it'),
      plugin = require('markdown-it-remove').removeMdPlugin;
      //import {removeMdPlugin} from 'markdown-it-remove';
const md = new MarkdownIt().use(plugin,{});
var result = md.render(`# markdown-it!`);

Options

const md = new MarkdownIt().use(plugin,{
    replaceNewlineValue:" " //replace newline(\n\r) to "replaceNewlineValue" (default:null)
    removeTags:true,//<h1>markdown-it!</h1> -> markdown-it!
    escapeHtml:false //<h1>markdown-it!</h1> -> &lt;h1&gt;markdown-it!&lt;/h1&gt;
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    7
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i markdown-it-remove

Weekly Downloads

7

Version

1.0.2

License

MIT

Unpacked Size

3.85 kB

Total Files

5

Last publish

Collaborators

  • sn-10