Bug 515749 - HTML Named Character References in Markdown Are Not Parsed Correctly
Summary: HTML Named Character References in Markdown Are Not Parsed Correctly
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: markdown backend (other bugs)
Version First Reported In: 25.12.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-09 01:08 UTC by Jonathan Gruber
Modified: 2026-02-09 01:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Test file for reproducing bug. (49 bytes, text/markdown)
2026-02-09 01:08 UTC, Jonathan Gruber
Details
Test file for reproducing bug. (56 bytes, text/html)
2026-02-09 01:09 UTC, Jonathan Gruber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Gruber 2026-02-09 01:08:33 UTC
Created attachment 189373 [details]
Test file for reproducing bug.

SUMMARY
When certain HTML named character references appear in a Markdown file, then those named character references are not parsed correctly. I only tested the named character references "“" and "”", but I'm sure the problem is not isolated to them.

STEPS TO REPRODUCE
1. Open the attached file test.html in a web browser.
2. Open the attached file test.md in Okular.
3. Compare the displays of the two files.

OBSERVED RESULT
Okular displays the named character references "“" and "”" verbatim. However, Okular does correctly parse the ostensibly equivalent "“" and "”".

EXPECTED RESULT
Okular should parse the Markdown "“" as the unicode character U+201C ("Left Double Quotation Mark") and "”" as the unicode character U+201D ("Right Double Quotation Mark").

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.2
Kernel Version: 6.18.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i7-1255U
Memory: 17 GB of RAM (16.4 GB usable)
Graphics Processor: Intel® Iris® Xe Graphics
Comment 1 Jonathan Gruber 2026-02-09 01:09:33 UTC
Created attachment 189374 [details]
Test file for reproducing bug.