[rkward] [Bug 399427] How to configure the fonts and background color of the "preview of rendered R Markdown"
Thomas Friedrichsmeier
bugzilla_noreply at kde.org
Sun Oct 7 08:01:14 BST 2018
https://bugs.kde.org/show_bug.cgi?id=399427
Thomas Friedrichsmeier <thomas.friedrichsmeier at ruhr-uni-bochum.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thomas.friedrichsmeier at ruhr
| |-uni-bochum.de
--- Comment #1 from Thomas Friedrichsmeier <thomas.friedrichsmeier at ruhr-uni-bochum.de> ---
Well, this is a partial answer at best, but you can influence the text colors
of the output by adding meta and style information at the top of the .Rmd.
E.g.:
---
title: "Habits"
output:
html_document:
highlight: espresso
---
<style type="text/css">
body p {
color: #CCCCCCCC;
}
</style>
The "highlight" affects the R highlighting colors, only, while to change the
default text color, apparently you have to use CSS. (It would be possible to
control both via CSS).
I do not really have an idea on how this could be handled automatically from
within RKWard. I suppose we could add a setting to specify a custom CSS for
.Rmd previews, but that would both need manual action, _and_ it would override
whatever is specified in the .Rmd header.
Let me know, if anybody has a good idea on this.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the rkward-devel
mailing list