title: Mimic a newline in Markdown
body: <p>I have an HTML text input <code>&lt;input type=&quot;text&quot; /&gt;</code> that users enter a string into. Because it is a text input and not a text area, users can not enter newlines.</p>
  <p>Users can enter Markdown elements in the text input for formatting the data when it is re-displayed later. Their options are limited, however, because they can not enter newline characters (ex. headers, lists).</p>
  <p>Lastly, users are not allowed to enter HTML elements in the field (for protecting against XSS attacks), so they can not enter <code>&lt;br/&gt;</code> elements into the text input.</p>
  <p>I wanted to know if there is a way in Markdown to mimic a newline in a single-line text input field that, when re-displayed as formatted text later, will display as a newline or line break.</p>
  <hr />
  <p><strong>Example</strong> (<em>assume <code>@cr</code> represents this desired newline tag in Markdown</em>):</p>
  <p>Input: <code>#A Header @cr ##A Subheader @cr Some text</code></p>
  <p>Output:</p>
  <h1>A Header</h1>
  <h2>A Subheader</h2>
  <p>Some Text</p>