This convenience function calls set_contents() and set_markdown().
set_markdown_contents(ht, row, col, value)A huxtable.
A row specifier. See rowspecs for details.
An optional column specifier.
Cell contents, as a markdown string.
The modified huxtable.
Markdown content in cells is completely separate from printing the whole
table as markdown using print_md(). When you set markdown to TRUE,
huxtable itself interprets the cell contents as markdown, and spits out HTML,
TeX or whatever.
set_markdown_contents(
jams, 1, 1,
"**Type** of jam"
)
#> Type of jam Price
#> Strawberry 1.90
#> Raspberry 2.10
#> Plum 1.80
#>
#> Column names: Type, Price