Bug 446870

Summary: Incorrect formatting of index when a list item begins with inline code.
Product: [Applications] okular Reporter: Kishore Gopalakrishnan <kishore96>
Component: markdown backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid
Priority: NOR    
Version First Reported In: 21.12.0   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Markdown file to reproduce the bug
Screenshot of the way okular renders it

Description Kishore Gopalakrishnan 2021-12-12 09:12:56 UTC
Created attachment 144475 [details]
Markdown file to reproduce the bug

SUMMARY
If a list item begins with inline code, okular incorrectly prints the list index in monospace

STEPS TO REPRODUCE
1. Open the attached file in Okular.

OBSERVED RESULT
The list index '3' in the attached file is printed in monospace, and looks different from the other list indices (attached screenshot)

EXPECTED RESULT
All the list indices should be formatted the same way. This can be seen by pasting the content of the attached file on https://dillinger.io/

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.7-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 21.5 GiB of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics

ADDITIONAL INFORMATION
Comment 1 Kishore Gopalakrishnan 2021-12-12 09:13:29 UTC
Created attachment 144476 [details]
Screenshot of the way okular renders it
Comment 2 Albert Astals Cid 2021-12-12 11:24:07 UTC
Qt bug https://bugreports.qt.io/browse/QTBUG-99148