Bug 414357 - table markdown is not pretty
Summary: table markdown is not pretty
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.8.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-21 10:20 UTC by Jérôme Laforge
Modified: 2020-11-12 12:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
actual & expected (124.76 KB, image/png)
2019-11-21 10:20 UTC, Jérôme Laforge
Details

Note You need to log in before you can comment on or make changes to this bug.
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.