Bug 430382

Summary: Markdown ToDo Lists are not shown correctly
Product: [Applications] okular Reporter: Lorenz Hoffmann <hoffmann_lorenz>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: wishlist CC: yurchor
Priority: NOR    
Version: 1.11.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lorenz Hoffmann 2020-12-14 16:10:52 UTC
SUMMARY
Markdown ToDo lists are rendered as unsorted lists with bullet points instead of checkboxes

STEPS TO REPRODUCE
1. Create a markdown document
2. Write a TODO list (- [ ] ...)

OBSERVED RESULT
The list is displayed like an unsorted list and every entry starts with [ ] or [x]

EXPECTED RESULT
An unsorted list with checkboxes instead of bullet points where the checkbox checked or not, depending on whether there is an `x` or a space between the square brackets.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.20.4
(available in About System)
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This is a feature request since TODO lists are not really part of Markdown it seems.
Comment 1 Yuri Chornoivan 2020-12-14 16:43:46 UTC
Okular uses Discount library to process Markdown files. It would be better to report the bugs against Discount:

https://github.com/Orc/discount/issues

The bug will be fixed faster if there will be a minimal working (non-working example) attached. You can test it locally using

markdown test.md

in console.
Comment 2 Lorenz Hoffmann 2020-12-15 13:40:17 UTC
(In reply to Yuri Chornoivan from comment #1)
> Okular uses Discount library to process Markdown files. It would be better
> to report the bugs against Discount:
> 
> https://github.com/Orc/discount/issues

Seems like there is already an issue for this:
https://github.com/Orc/discount/issues/205

Even better, it seems to be finished and gets released with v3, very cool!