Skip to content

fix: render unsupported ornamental break fallbacks#274

Closed
uxjulia wants to merge 1 commit into
developmentfrom
fix/ornamental-break-fallback
Closed

fix: render unsupported ornamental break fallbacks#274
uxjulia wants to merge 1 commit into
developmentfrom
fix/ornamental-break-fallback

Conversation

@uxjulia

@uxjulia uxjulia commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Track when the EPUB parser is inside an ornamental-break container.
  • When an empty-alt ornamental image uses an unsupported format, allow the hidden p.ornamental-break-as-text fallback to render instead of being skipped by display: none.
  • Add an Unreleased changelog entry for the reader-visible fix.

Root Cause

Some EPUBs provide ornamental breaks as an SVG image plus a hidden text fallback such as * * *. CrossInk does not decode SVG images, but it still honored the CSS that hides the fallback paragraph, so the entire ornamental break disappeared.

Validation

  • git diff --check
  • pio run -e simulator
  • pio run -e default after initializing open-x4-sdk in the fresh worktree

@uxjulia uxjulia closed this Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant