FullStory interview question

Create a markdown to html transpiler

Interview Answer

Anonymous

Mar 10, 2020

Create a hashmap with markdown as the key and html as the value. For multil-line markdown just reuse the main function that translates the values. const mdToHtmlMap = { "#" : "h1", "##": "h2", } etc