title: How to insert newline into MS Teams markdown?
body: <p>When I enter markdown format in MS Teams (```), how do I create a newline in a string? When a human types in markdown format, pressing Enter results in a newline. When I send a string with <code>&lt;br&gt;</code>, <code>\n</code> or <code>\r\n</code> in text to the connector, it does not create a newline.  I've found that I can escape markdown, enter a <code>&lt;br&gt;</code>, and enter markdown again, but then it reformats each line to remove whitespace.</p>
  
  <p>So how can I create a newline and maintain my spacing?</p>
  
  <p>If this matters, I'm using pymsteams connector.</p>
  
  <p>Edit: adding code example</p>
  
  <pre><code>import pymsteams
  msg = pymsteams.connectorcard('...')
  txt = '``` some text \n second line ```'
  msg.text(txt)
  msg.send()
  </code></pre>
  
  <p>I've also tried <code>txt = '``` some text \r\n second line ```'</code> and <code>txt = '``` some text &lt;br&gt; second line ```'</code>, but none of the 3 options insert a newline between "some text" and "second line".</p>