github homeylab/bookstack-file-exporter v2.0.0

latest releases: v3.0.0, v2.3.0, v2.2.0...
6 months ago

Release Notes — v2.0.0

Highlights

New: HTML asset link rewriting. The modify_links feature now works on HTML exports in addition to Markdown. Images (including anchor-wrapped click-to-zoom variants) and attachment links are rewritten to local relative paths, making HTML exports fully portable offline. (19ab633)

Config rename: modify_markdown → modify_links. The old key still works but is deprecated and will be removed in a future release. Rename in your config now. (19ab633, f6273b0)

Deprecations

  • assets.modify_markdown — replaced by assets.modify_links. Legacy key still accepted with a deprecation warning. Will be removed in a future release. Action: rename the key in your config. Note: the legacy key now triggers HTML rewriting as well (see Breaking Changes). (19ab633, 3ffb753, 5625a8b)

Potential Breaking Changes

  • modify_markdown: true now rewrites HTML exports as well. Previously this flag only rewrote markdown. If your config has assets.modify_markdown: true AND you export the html format, HTML images and attachment links will now be rewritten to local paths.
  • Markdown exports now rewrite the outer anchor URL in click-to-zoom image links, not just the inner <img src> / ![]() src. Previously: [![alt](LOCAL)](REMOTE_URL). Now: [![alt](LOCAL)](LOCAL). Click-through resolves locally — consistent with how HTML exports now behave. Any tooling that depended on the outer link remaining a live Bookstack URL will see different bytes. (19ab633)

Features

  • Rewrite asset links in HTML exports. New behavior under assets.modify_links: true. Rewrites <img src> plus the outer click-to zoom <a href> wrapper, and <a href> attachment links. Eligible formats: markdown, html. PDF / plaintext / zip exports are not modified. (19ab633)
  • Markdown URL extraction now uses markdown-it-py instead of regex — more accurate for nested links, mixed-format content, and unusual whitespace. (b07045e)

Fixes

  • Attachment URL corruption fixed. A sort-order regression could mangle attachment URLs when one URL was a prefix of another (e.g. /attachments/1 vs /attachments/10). Length-descending sort restored — long URLs replaced before their short prefixes. (f5b8949)
  • Legacy modify_markdown is robust to non-dict assets values. Bad config no longer crashes startup; clear error surfaced. (f6273b0)
  • RetryError from HTTP layer is now caught and logged instead of bubbling as an uncaught exception. (97d2965)
  • Tightened HTML escape handling and dead-code cleanup in the asset archiver — narrower &amp; escape branch, removed _add_url wrapper. (a121d34,ed2063d)
  • Log message casing normalized (cosmetic). (bf7bd99)

Performance

  • HTML URL map build skips a redundant API call for ImageNode lookups — one fewer round-trip per image. (680bdac)
  • URL substitution loop scans page bytes once instead of twice during rewrite. (c999e12)

Upgrade Notes

From To Action
1.6.x 2.0.0 Rename assets.modify_markdown → assets.modify_links. If you export html format AND had modify_markdown: true, HTML link rewriting is now enabled — review whether you want this behavior. Markdown outer anchor URLs (click-to-zoom) now point local instead of remote.

Documentation

  • README: new "Modify Links" section with Markdown + HTML before/after examples, scope/limitations, eligible format matrix. (f54d975)
  • README: upgrade table updated. [f54d975] [3ffb753]

Full Changelog: v1.6.3...v2.0.0

Don't miss a new bookstack-file-exporter release

NewReleases is sending notifications on new releases.