Skip to content
This repository was archived by the owner on Aug 2, 2020. It is now read-only.

Commit aaf3dad

Browse files
committed
Added example to README.
1 parent a7369bd commit aaf3dad

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,38 @@
99
```javascript
1010
depre('pre');
1111
```
12+
13+
Take for example the following `pre` tag nested inside a `div`:
14+
15+
```html
16+
<div>
17+
<pre>
18+
{
19+
"name": "CanvasToVideo",
20+
"description": "An experiment in converting Canvas animations to video.",
21+
"main": "CanvasToVideo.js"
22+
}
23+
</pre>
24+
25+
</div>
26+
```
27+
28+
The contents of the `pre` tag will render like this when viewed in a browser.
29+
30+
```
31+
{
32+
"name": "CanvasToVideo",
33+
"description": "An experiment in converting Canvas animations to video.",
34+
"main": "CanvasToVideo.js"
35+
}
36+
```
37+
38+
With de-pre.js it will render like this:
39+
40+
```
41+
{
42+
"name": "CanvasToVideo",
43+
"description": "An experiment in converting Canvas animations to video.",
44+
"main": "CanvasToVideo.js"
45+
}
46+
```

0 commit comments

Comments
 (0)