Skip to content

Commit

Permalink
docs(readme): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Dec 19, 2016
1 parent 117553f commit d68f83c
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,18 +139,36 @@ Default: `[]`
Description: *Accepts an object with properties for the expansion*

```js
postLoadPlugins({
import posthtml from 'posthtml';
import postLoadPlugins from 'post-load-plugins';
const html = `
<div block="content">
<h1 elem="title">Title</h1>
<p elem="text" mods="red">Text</p>
</div>
`;
posthtml(postLoadPlugins({
extends: {
config: {
posthtml: {
bem: {
modDlmtr: '--'
"modPrefix": "---"
}
}
}
}
})
})).process(html);
// result =>
// <div class="content">
// <h1 class="content__title">Title</h1>
//
// <p class="content__text content__text---red">Text</p>
// </div>
```
*Expand the current configuration for posthtml plugins bem*

## LICENSE

Expand Down

0 comments on commit d68f83c

Please sign in to comment.