Pregunta de entrevista de FullStory

Create a markdown to html transpiler

Respuesta de la entrevista

Anónimo

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