Summary: | How to configure the fonts and background color of the "preview of rendered R Markdown" | ||
---|---|---|---|
Product: | [Applications] rkward | Reporter: | Adley <adleyvong> |
Component: | User Interface | Assignee: | RKWard Team <rkward-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | thomas.friedrichsmeier |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Adley
2018-10-06 02:05:22 UTC
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. It's work, Thanks. |