[okular] [Bug 504083] New: 1st level heading won't be correctly rendered if the Markdown document uses UTF-8 BOM(byte-order mark)
ๆๅไป
bugzilla_noreply at kde.org
Mon May 12 04:34:50 BST 2025
https://bugs.kde.org/show_bug.cgi?id=504083
Bug ID: 504083
Summary: 1st level heading won't be correctly rendered if the
Markdown document uses UTF-8 BOM(byte-order mark)
Classification: Applications
Product: okular
Version: 25.04.1
Platform: Ubuntu
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: markdown backend
Assignee: okular-devel at kde.org
Reporter: Buo.Ren.Lin at gmail.com
Target Milestone: ---
Created attachment 181190
--> https://bugs.kde.org/attachment.cgi?id=181190&action=edit
Bug reproduction screenshot
SUMMARY
If the following requirements are met for a Markdown document:
* The file is saved with (UTF-8) BOM
* The 1st-level heading is at the beginning of the file
The 1st-level heading will be wrongly rendered as regular text.
STEPS TO REPRODUCE
1. Launch Kate.
2. In Kate, create a new Markdown document.
3. In the new document, write `# title` at the beginning of the file.
4. Toggle the Tools > Add Byte Order Mark (BOM) menu option.
5. Save the file.
6. Open the saved file using Okular and verify its rendered result.
OBSERVED RESULT
The 1st-level heading is wrongly rendered as regular text.
EXPECTED RESULT
The 1st-level heading is correctly rendered as 1st-level heading.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version(Flatpak): 6.13.0
Qt Version(Flatpak): 6.9.0
ADDITIONAL INFORMATION
Reproduced on the Flatpak distribution of Okular, version 25.04.1.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list