data2health / contributorship

Contributorship section for the authorship paper
https://data2health.github.io/contributorship/
Other
2 stars 2 forks source link

Adding background color to table rows #13

Closed dhimmel closed 4 years ago

dhimmel commented 4 years ago

Thanks @samteplitzky for all the work transferring the manuscript to this repository. I'll respond here to your message:

I'm in the process of transferring the contributor commentary to manubot. I think I know the answer to this, but is there a way to add color to table cells/rows to replicate how they are represented in the google doc? I'm assuming that's a limitation of markdown, but just wanted to check.

For reference, here's what the google doc looks like:

image

Will follow up with a solution!

dhimmel commented 4 years ago

From the delete-me

Available background colors for text, images, code, banners, etc:  

`white`{.white}
`lightgrey`{.lightgrey}
`grey`{.grey}
`darkgrey`{.darkgrey}
`black`{.black}
`lightred`{.lightred}
`lightyellow`{.lightyellow}
`lightgreen`{.lightgreen}
`lightblue`{.lightblue}
`lightpurple`{.lightpurple}
`red`{.red}
`orange`{.orange}
`yellow`{.yellow}
`green`{.green}
`blue`{.blue}
`purple`{.purple}

See the colors at https://manubot.github.io/rootstock/v/7c0f9c30fe03a6e264e19d08f2337266a4ea3e3e/#special:

image

dhimmel commented 4 years ago

For an individual cell, you could do [text for my cell]{.green}.

This would probably get annoying to do in every cell, but perhaps you could do it for just one column?

Note you also can do it in the caption, if you'd like to add color to category mentions.

samteplitzky commented 4 years ago

Thanks! I'll give it a try.