Skip to content

Commit 02674c2

Browse files
committed
Release v1.0.1
1 parent f061c65 commit 02674c2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ __In NodeJS__
2121

2222
```js
2323
var render = require('posthtml-render');
24-
var titleObj = { tag: 'h1' };
24+
var listObj = { tag: 'ul' };
2525

26-
titleObj.attrs = { class: 'heading' };
27-
titleObj.content = ['Title'];
26+
listObj.attrs = { class: 'list' };
27+
listObj.content = ['one', 'two', 'three'].map(function(text) { return { tag: 'li', content: text }});
2828

29-
clonsole.log(render(titleObj/*, options */));
30-
// <h1 class="heading">Title</h1>
29+
clonsole.log(render(listObj/*, options */));
30+
// <ul class="list"><li>one</li><li>two</li><li>three</li></ul>
3131
```
3232

3333
__In Browser__

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "posthtml-render",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Render PostHTMLTree to HTML/XML",
55
"main": "lib/posthtml-render.js",
66
"scripts": {

0 commit comments

Comments
 (0)