Skip to content

Commit

Permalink
Pimp examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgmer committed Nov 25, 2015
1 parent d22dcac commit 002357b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ Example

```js
var canvas = document.getElementById("canvas");
rasterizeHTML.drawHTML('Some <span style="color: green; font-size: 20px;">HTML</span> with an image <img src="someimg.png" />', canvas);
rasterizeHTML.drawHTML('Some ' +
'<span style="color: green; font-size: 20px;">HTML</span>' +
' with an image <img src="someimg.png">',
canvas);
```

See [the examples page](https://github.com/cburgmer/rasterizeHTML.js/wiki/Examples). The code also [ships with examples](https://github.com/cburgmer/rasterizeHTML.js/tree/master/examples), make sure to run `npm test` first to compile the library.
Expand All @@ -44,9 +47,7 @@ All resources (HTML page, CSS, images, fonts and JS) that are needed for drawing

The code is tested under Firefox, Chrome & Safari.

There's basic support for Microsoft Edge.

**It's not working under [any Internet Explorer version.](https://github.com/cburgmer/rasterizeHTML.js/wiki/Limitations#ie)**
There's basic support for Microsoft Edge, however **it will not work under [any version of Internet Explorer](https://github.com/cburgmer/rasterizeHTML.js/wiki/Limitations#ie).**

Also the individual browsers still have some issues when rendering SVGs with embedded HTML to the canvas.

Expand Down

0 comments on commit 002357b

Please sign in to comment.