@storyteller-platform/epub 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2780 -35
- package/dist/index.js +0 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1781,8 +1781,6 @@ export class Epub {
|
|
|
1781
1781
|
Use if resolving a relative href from a file other than the package document.
|
|
1782
1782
|
*/
|
|
1783
1783
|
async resolveHref(href, relativeTo, { toRoot } = {}) {
|
|
1784
|
-
if (href.startsWith("#"))
|
|
1785
|
-
return href;
|
|
1786
1784
|
const rootfile = await this.getRootfile();
|
|
1787
1785
|
const from = relativeTo
|
|
1788
1786
|
? await this.resolveEntry(rootfile, relativeTo)
|