Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I re-added elements from your previous implementation, plus added native context2d drawing for unordered lists.
http://rawgit.com/Flamenco/html2canvas/master/examples/lists.html
You might enjoy this, too:
http://rawgit.com/Flamenco/jsPDF/master/examples/html2pdf/lists.html
I have successfully bridged html2canvas code in order to generate a PDF instead of a canvas. The nice thing about this is the PDFs can be scaled, selected, searched, and annotated (vs canvas). Notice how much sharper the PDF is compared to the canvas implementation.
Here are your 2 demo files rendered to PDF format:
http://rawgit.com/Flamenco/jsPDF/master/examples/html2pdf/pdf.html
http://rawgit.com/Flamenco/jsPDF/master/examples/html2pdf/pdf2.html
You can view all examples here:
https://github.com/Flamenco/jsPDF/wiki/html2pdf
I needed to make a few modifications to the html2canvas code for signaling page breaks (page-break-before) to the canvas/context2d. Please let me know if you are interesting in incorporating them and/or establishing an interface for pagination during the rendering process.
Thanks for your great work!