title: line break within cell for huxtable table
body: <p>I recently started using the <a href="https://hughjonesd.github.io/huxtable/" rel="noreferrer">huxtable</a> R package for tables and I'm really impressed with it. One thing I can't seem to figure out, however, is how to get line breaks <em>within</em> a cell. Here's what I've tried</p>
  
  <pre><code>library(tidyverse)
  library(huxtable)
  cars &lt;- mtcars %&gt;% 
    mutate(car = rownames(.),
           car = str_replace(car, " ", "\n")) %&gt;% 
    slice(1:5) %&gt;% 
    select(car, cyl, hp)
  
  cars
  
  # A tibble: 5 x 3
    car                    cyl    hp
    &lt;chr&gt;                &lt;dbl&gt; &lt;dbl&gt;
  1 "Mazda\nRX4"          6.00 110  
  2 "Mazda\nRX4 Wag"      6.00 110  
  3 "Datsun\n710"         4.00  93.0
  4 "Hornet\n4 Drive"     6.00 110  
  5 "Hornet\nSportabout"  8.00 175 
  
  ht &lt;- as_hux(cars, add_colnames = TRUE)
  escape_contents(ht) &lt;- TRUE
  ht
  </code></pre>
  
  <p>But this ends up without the line break, as in the screenshot below</p>
  
  <p><a href="https://i.stack.imgur.com/PuWnz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PuWnz.png" alt="enter image description here"></a></p>
  
  <p>The <code>escape_contents</code> part doesn't seem to make a difference. </p>
  
  <p>I'm not sure if what I want is possible, but I know it is in other packages (e.g., <code>DT::datatable</code>). I'd really like to use huxtable, if possible, however, because I like the design and flexibility of the package.</p>
  
  <p>Any thoughts would be great.</p>
  
  <p><strong>EDIT:</strong> I should have specified I'm hoping to get this to work for PDF.</p>