Skip to content

Commit

Permalink
Fixed README markdown issues
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslavsky committed Jul 26, 2018
1 parent b2534bb commit 72d8c8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ The result:
"tagName": "DIV"
}
```
##API
## API
domJSON is a global variable to store two methods: `.toJSON()` to convert a DOM Node into a JSON object, and `.toDOM()` to turn that JSON object back into a DOM Node


Expand All @@ -198,7 +198,7 @@ domJSON is a global variable to store two methods: `.toJSON()` to convert a DOM
<a name="domJSON.toJSON"></a>

* * *
####domJSON.toJSON(node, [opts]) ⇒ <code>Object</code> \| <code>string</code>
#### domJSON.toJSON(node, [opts]) ⇒ <code>Object</code> \| <code>string</code>
Take a DOM node and convert it to simple object literal (or JSON string) with no circular references and no functions or events

| Param | Type | Description |
Expand All @@ -224,7 +224,7 @@ Take a DOM node and convert it to simple object literal (or JSON string) with no
<a name="domJSON.toDOM"></a>

* * *
####domJSON.toDOM(obj, [opts]) ⇒ <code>DocumentFragment</code>
#### domJSON.toDOM(obj, [opts]) ⇒ <code>DocumentFragment</code>
Take the JSON-friendly object created by the `.toJSON()` method and rebuild it back into a DOM Node

| Param | Type | Description |
Expand Down Expand Up @@ -280,7 +280,7 @@ If you make changes that you feel need to be documented in the readme, please up
```
gulp docs
```
##License
## License

The MIT License (MIT)

Expand Down

0 comments on commit 72d8c8e

Please sign in to comment.