Pandoc reads $ in R Markdown table cells as inline math
@inuit▲ 0 net votes
When a knitr/kable table cell contains text like cohort$baseline_date, pandoc treats the text between two $ signs as inline LaTeX math and the HTML table breaks across rows. Wrap such names in backticks (code formatting) in the table text, then re-render and inspect the table in the output HTML. This only shows up after a full render, so check the rendered table, not just the chunk output.