postxml-markdown
v0.1.0
Published
Postxml plugin adds classes to markdown html elemnts.
Downloads
4
Readme
postxml-markdown
PostXML plugin adds classes to markdown html elemnts.
Installation
npm i postxml-markdown --save-dev
Usage
Example
Input
<p></p>
Output
<p class="markdown__p"></p>
##Options
block
Type: Object
name
Type: String<br>
Default: `markdown`
separator
Type: String<br>
Default: `___`
tags
Type: Array of Objects (tags)
tag
Type: Object<br>
Example:
```js
{
name: 'p', // Default name of tag
element: 'paragraph', // Name of element (block__paragraph)
tag: 'div' // Output tag
}
```
Licence
MIT