How to keep downloaded table formatted?


Hi all! I’m new to R shiny and i’m currently developing a shiny app. One of the function I want to realize is to allow users to download table with format style. For example, the ouput can render a table with some specific cells being highlighted, and what I am trying to do is to allow users download this table with the same format.
I searched on the Internet, but could not find any solution, does anyone know the solution?
Thanks in advanced!!