[okular] [Bug 510945] okular fails to render strike through formatted text of markdown documents (2)

Ben Morris bugzilla_noreply at kde.org
Sun Nov 9 23:35:22 GMT 2025


https://bugs.kde.org/show_bug.cgi?id=510945

Ben Morris <bugs at benmorris.org.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugs at benmorris.org.uk

--- Comment #2 from Ben Morris <bugs at benmorris.org.uk> ---
I think I see where this is going wrong. It's this line:
https://invent.kde.org/graphics/okular/-/blob/420d551a9fe9c2904f67c6b47efdde7b9e4faa98/generators/markdown/converter.cpp#L54

QDomDocument::setContent() parses XML. Discount emits named character
references which are valid HTML but *not* valid XML.

This can be demonstrated by inserting the line
    qDebug() << dom.setContent(html).errorMessage;

and then loading a file containing an ellipsis. Okular prints "Entity 'hellip'
not declared."

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list