Question d’entretien chez FullStory

Create a markdown to html transpiler

Réponse à la question d'entretien

Utilisateur anonyme

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