Bug 414357

Summary: table markdown is not pretty
Product: [Applications] okular Reporter: Jérôme Laforge <jerome.laforge>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal CC: andysardina22, pmartycz
Priority: NOR    
Version First Reported In: 1.8.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: actual & expected

Description Jérôme Laforge 2019-11-21 10:20:29 UTC
Created attachment 124043 [details]
actual & expected

SUMMARY
For markdown file and this content:
| Mandatory | Header's key | Header's value   | Description                                                                            |
|-----------|--------------|------------------|----------------------------------------------------------------------------------------|
| yes       | Content-Type | application/json | Set the content type of the request body                                               |
| yes       | Authorization| Basic Authent: <br> {api_key} {api_secret} | Set the api_key and api_secret used to identify api consumer |

The table is not so pretty as markdown with github (border missing).

STEPS TO REPRODUCE
1. with md file with table
2. open with okular
3. compare with github

OBSERVED RESULT
see screenshot actual

EXPECTED RESULT
see screenshot expected
Comment 1 Andi Sardina 2019-11-26 17:51:55 UTC
  The problem here is that after the markdown is converted to HTML no CSS is applied to it. Also, the support for CSS in the QTextDocument is limited, so, there is no much that can be done with it.
 
  Does anybody know if inside the KDE Framework there is something that could help with this? I was thinking about using QWebEnginePage but I don't know how to generate pixmaps for the pages.