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;
});

Readme

Keywords

Package Sidebar

Install

npm i markdown-it-remove

Weekly Downloads

11

Version

1.0.2

License

MIT

Unpacked Size

3.85 kB

Total Files

5

Last publish

Collaborators

  • sn-10