html - R markdown table of content conditional highlighting/coloring -


i trying create floating (or static) table of content (toc) in rmarkdown rows can have different colors depending on given condition. may assume each row title of test. each test can return either -1 (makes row red), 0 (makes row orange) or 1 (makes row green). want toc visually self-explanatory based on different colors rows have. have following in rmarkdown. not sure how custom css should purpose. appreciate help.

output: html_document: number_sections: yes toc: yes toc_float: true theme: cerulean highlight: tango smart: true fig_width: 6 fig_height: 6 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -