title: How do you render line breaks within cells in an rmd file knitted to html?
body: <p>I have a dataframe that I created by reading in a csv file that includes line breaks. The line breaks were manually created in Excel with Alt + Enter. When previewing the dataframe, the line break is visible on the hover preview <a href="https://i.stack.imgur.com/f4Q21.png" rel="nofollow noreferrer">this image</a> from a practice data set.</p>
  <p>The same image shows that the line breaks are not clearly evident without the hover. When rendering to html, the line breaks appear as the &quot;\n&quot; character.</p>
  <p>I am looking for a way to render the line breaks as actually line breaks (as it looks in the hover preview) when the dataframe is knitted to html. Because of other formatting limitations for the real data table, I am hoping to achieve this with either just printing the dataframe directly or producing a <a href="https://glin.github.io/reactable/index.html" rel="nofollow noreferrer">reactable</a> object.</p>
  <p>To replicate my dataframe in R:</p>
  <pre><code>multiline_df &lt;- data.frame(User = c(&quot;DesWreck97&quot;, &quot;T7tUrNoUt&quot;, &quot;DstrctrOfDoom&quot;, &quot;YAML_Hamilton&quot;),
                             QualityPoints = c(7.80, 9.56, 8.87, 5.49),
                             Notes = c(&quot;1. Release code has been validated.\n2. Do not provided access without new confirmed key.&quot;, &quot;1. Release code has not been validated.&quot;, &quot;N/A&quot;, &quot;1. Non-conforming profile structure; DSA.\n2. Three functions applied in last 60-day period.\n3. No user contact. Account primed for deletion at n &lt; 180 days.&quot;),
                             ReturnValue = c(&quot;A&quot;, &quot;A&quot;, &quot;T&quot;, &quot;A&quot;))
  </code></pre>