Only 1 question, I ran out of time.
Convert Markdown string to HTML
Write logic to convert the input to expected output.
Input:
This is a paragraph with a soft
line break.
This is another paragraph that has
> Some text that
> is in a
> block quote.
This is another paragraph with a ~~strikethrough~~ word.Expected Output:
<p>This is a paragraph with a soft<br />line break.</p>
<p>This is another paragraph that has <br />
<blockquote>Some text that<br />is in a<br />block quote.</blockquote>
</p>
<p>This is another paragraph with a <del>strikethrough</del> word.</p>Formatting of the output is not important - but must be valid HTML.
Any suggestions on the best approach to this?