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

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -