- Add 'unsafe-eval' to Content-Security-Policy script-src directive
to support dynamic module evaluation required by ES modules
- Standardize HTML formatting:
- Use lowercase doctype declaration
- Use double quotes consistently
- Improve indentation for readability
- Format CSS properties (box-shadow, transition) across multiple lines
- Close void elements with / for consistency
The CSP change is necessary for the ES module system to function
correctly in the browser environment.
The fixed-layout renderer now accepts an object for the return value of
`load()` (on the `book.sections` items). If it's an object, the `src`
is the URL of the section, and `onZoom`, if present, will be called
when the viewport is zoomed. With this you can scale the page yourself
rather than relying on the renderer's own scaling with CSS transform.
Also upgraded to PDF.js 4.6.82. And now internal links are broken...
Don't know how to fix that yet.