In Markdown, paragraphs are separated by two line breaks. Two spaces at the end of a line produces a newline (or rather a <br /> tag in HTML)
For example (I've replaced spaces with • for clarity):
First•paragraph,•first•line.
First•paragraph,•still•first•line.
Second•paragraph,•first•line.••
Second•paragraph,•second•line.
The expected output is:
<p>First•paragraph,•first•line.
First•paragraph,•still•first•line.</p>
<p>Second•paragraph,•first•line.<br />
Second•paragraph,•second•line.</p>
The output produced by TSMarkdownParser is something more like:
<p>First•paragraph,•first•line.</p>
<p>First•paragraph,•still•first•line.</p>
<p></p>
<p>Second•paragraph,•first•line.</p>
<p>Second•paragraph,•second•line.</p>
In Markdown, paragraphs are separated by two line breaks. Two spaces at the end of a line produces a newline (or rather a
<br />tag in HTML)For example (I've replaced spaces with • for clarity):
The expected output is:
The output produced by TSMarkdownParser is something more like: