Bug 426682

Summary: CSS support in the Markdown backend
Product: [Applications] okular Reporter: Sasha Unspecified <sasha2048>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: wishlist CC: vosje+git
Priority: NOR    
Version First Reported In: 1.9.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sasha Unspecified 2020-09-18 11:13:08 UTC
SUMMARY
The Markdown Library (mkd_functions, https://manpages.debian.org/stretch/libmarkdown2-dev/mkd-functions.3.en.html) supports extracting the CSS sections from a markdown document via mkd_css. The Markdown Backend for Okular doesn't use that function. It should.

STEPS TO REPRODUCE
1. Create a markdown document with a stylesheet, e.g. “<style type="text/css">* {color: red !important}</style> Hello”.
2. Open the markdown document with Okular.

OBSERVED RESULT
Stylesheet is ignored.

EXPECTED RESULT
Stylesheet is taken into account.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8 (built against 5.12.8)
Kernel Version: 5.4.0-47-generic
OS Type: 64-bit

ADDITIONAL INFORMATION
Additionally it would be good for the configuration window of the Markdown backend to allow to specifying custom/user CSS (via a multiline textbox) to be included into EVERY document (see also #400529, where another user asks to have not a single textbox but a set of editable stylesheets).
Comment 1 Sasha Unspecified 2020-09-18 11:14:09 UTC
Additionally it would be good for the configuration window of the Markdown backend to allow to specifying custom/user CSS (via a multiline textbox) to be included into EVERY document (see also https://bugs.kde.org/show_bug.cgi?id=400529, where another user asks to have not a single textbox but a set of editable stylesheets).