Skip to content

Weird bolding behavior #478

@efenner

Description

@efenner

Affected Version

v0.15.0

Describe the Bug

I have one EPUB (which has some other weird formatting issues aside from this) in which after the latest update all text in the book became bold.

Based on the changelog and the fact that stripping all images from the file resolved the issue, I assume that it relates somehow to the new feature replacing images with the placeholder and alt text.

One of the weird formatting things that I noticed about this EPUB is that it sometimes includes <img> tags inside of a header tag (e.g. <h2>), which is what led me to just delete the images from the file. It is technically valid HTML, but certainly uncommon, so I would understand not addressing this bug but it does point to a potential oversight in the image handler.

My guess is that the image handling interrupted the header handling such that Crosspoint never recognized that the heading was closed?

Steps to Reproduce

Open this particular EPUB, which I cannot share

Expected Behavior

Most of the book should not be bolded.

Relevant Log Output/Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageBug to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions