markdown-it-remove
v1.0.2
Published
Remove Markdown syntax.
Downloads
95
Readme
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> -> <h1>markdown-it!</h1>
});