Facebook | Onsite | Markdown-Html converter

Anonymous User
1529
Nov 13, 2019
Nov 13, 2019

The question was to create a Markdown-Html converter.

Given the following input:

"This is a sample \n" 
"~~input~~.\n\n" 
"> This is \n" 
"> a \n" 
"> blockquote.\n\n" 
"Another paragraph.\n\n"

Generate this expected output:

<p>This is a sample <br /> <del>input</del></p>
<p><blockquote>This is <br /> a <br /> blockquote.</p>
<p>Another paragraph.</p>
Comments (3)