Pergunta de entrevista da empresa FullStory

Create a markdown to html transpiler

Resposta da entrevista

Sigiloso

10 de mar. de 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