Skip to content

Commit

Permalink
Tweak README
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Jul 29, 2015
1 parent c6b0043 commit c6a8155
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@ It is intended to be a small libraray that is run client-side in a browser that
### Usage

```
var mobiledoc = [
[ // markers
['B']
],
[ // sections
[1, 'P', [ // array of markups
// markup
[
[0], // open markers (by index)
0, // close count
'hello world'
var mobiledoc = {
version: "0.1",
sections: [
[ // markers
['B']
],
[ // sections
[1, 'P', [ // array of markups
// markup
[
[0], // open markers (by index)
0, // close count
'hello world'
]
]
]
]
];
};
var renderer = new DOMRenderer();
var rendered = renderer.render(mobiledoc);
document.getElementById('output').appendChild(rendered);
Expand Down

0 comments on commit c6a8155

Please sign in to comment.