Bug 480260 - Okular has problems displaying check boxes in lists and tables
Summary: Okular has problems displaying check boxes in lists and tables
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: markdown backend (show other bugs)
Version: 23.08.1
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-24 08:58 UTC by tnemeth
Modified: 2024-01-30 23:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Okular output of the bullet list with checkboxes and tables. (127.78 KB, image/png)
2024-01-24 08:58 UTC, tnemeth
Details
Example MD file (1.31 KB, text/markdown)
2024-01-26 18:00 UTC, tnemeth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tnemeth 2024-01-24 08:58:10 UTC
Created attachment 165181 [details]
Okular output of the bullet list with checkboxes and tables.

SUMMARY

A great change has been made in checkboxes support in MarkDown has been made in Okular. There are, however still
some issues with checkboxes in lists. When there is a text bloc in the list element the text of the checkbox is displayed
below the checkbox.

While checkboxes are 1 thing, there is also the fact that tables could have borders :)


STEPS TO REPRODUCE
1. Create a markdown file as follows:

```
- [ ] 058 : reprogrammation atelier

    | PRS | Description                      | SRS Straton  |
    | --: | :----------                      | :----------  |
    | 034 | support atelier                  | 207 176 221  |
    | 038 | langage                          | 207          |
    | 039 | programmation                    | 211 212 221  |
    | 044 | Code TIC + src                   | 207          |
    | 051 | monitor prog                     | 176 221      |
    | 052 | programmation                    | 211 212 221  |
    | 063 | reprog par Eth                   | 212 221      |

- [ ] 059 : récupération des versions softs

    | PRS | Description                      | SRS Straton   |
    | --: | :----------                      | :----------   |
    | 033 | langage, (038 = wtf)             | 207 > 059/205 |

- [ ] 060 : start appli si non PRM

    | PRS | Description                      | SRS Straton  |
    | --: | :----------                      | :----------  |
    | 043 | execution programme en TIC       | 207          |

- [ ] 061 : stop sur reboot à chaud

    | PRS | Description                      | SRS Straton  |
    | --: | :----------                      | :----------  |
    | 143 | stop après reboot                | 174          |
    | 144 | LED WDG                          | SRS ACS ok   |
```

2. Have a look at the output (cf attachment).


OBSERVED RESULT
The text of the checkbox is below the checkbox because there is a table (or sometimes other text) in the bullet list element bloc.

EXPECTED RESULT
The text of the checkbox should have been next to the checkbox.
A plus would be that tables have borders for better understanding of tables columns and lines (an option in the markdown support plugin ?).

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.5.0-5-amd64 (64-bit)
Graphics Platform: X11


ADDITIONAL INFORMATION
N/A
Comment 1 Albert Astals Cid 2024-01-24 23:21:19 UTC
Please attach the actual .md file instead of writing it in the bug report as text, it will reduce the possible issues that arise from copypaste and web formatting, etc.
Comment 2 tnemeth 2024-01-26 18:00:40 UTC
Created attachment 165252 [details]
Example MD file
Comment 3 Albert Astals Cid 2024-01-30 23:06:44 UTC
We are using discount for markdown rendering, you can see that the same rendering happens when doing in a terminal

mkd2html list.md 

and opening the resulting list.html in a web browser.

Please file a bug in https://github.com/Orc/discount once it is fixed there (and your distribution updates the discount version) it will be automatically fixed in okular.