Bug 426682 - CSS support in the Markdown backend
Summary: CSS support in the Markdown backend
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.9.3
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-18 11:13 UTC by Sasha Unspecified
Modified: 2020-09-18 11:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

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