Commit Graph
12 Commits
Author SHA1 Message Date
John Factotum d4696cea4b FB2: only check <binary>s when getting data
Fixes https://github.com/johnfactotum/foliate/issues/1492
2025-03-12 17:28:30 +08:00
John Factotum 6f8eb1b85b Fix missing trailing comma 2024-12-02 09:54:55 +08:00
John Factotum 936c4f78e5 FB2: fix tables
Fixes https://github.com/johnfactotum/foliate/issues/1445
2024-12-02 09:47:58 +08:00
John Factotum e94b85ce09 FB2: don't throw when image has no xlink:href
Fixes #35
2024-09-25 23:15:02 +08:00
John Factotum 541bc07b6f EPUB: redo metadata parsing
- Support the `prefix` attribute (for the `property` attr on `<meta>`)
- Localized titles, names (including `sortAs`)
- `belongsTo`, including `calibre:series`
- `altIdentifier`, converted to URN where possible
- Remove `producer`. It's now `contributor` with `role: 'bkp'`.

NOTE: this is a breaking change if you assumed that `title` will always
be a string, `author` will always be an array, etc.
2024-09-18 11:28:08 +08:00
John Factotum 5da3be5200 Add destroy method
Which revokes all blob URLs and removes the element from document.
2023-05-09 14:02:07 +08:00
John Factotum 9068d70acc FB2 improvements
- Set title text-align more specifically on h1
- Don't throw when there's no cover
2023-05-01 22:55:59 +08:00
John Factotum 45bfe6ee71 Fix whitespace normalization
- Normalize ASCII whitespace only
- Collapse sequence of *one* or more consecutive whitespace characters
2023-03-21 12:03:39 +08:00
John Factotum d76027c00a FB2: fix handling of non-element nodes 2022-11-10 13:59:23 +00:00
John Factotum 2b51522c43 Add .eslintrc.json
And fix issues
2022-11-04 14:12:07 +00:00
John Factotum 88ac253f30 FB2: fix encoding on Firefox 2022-10-26 08:32:24 +00:00
John Factotum 5fc72d121c Add files via upload 2022-10-18 18:55:54 +00:00