Render Markdown (Notes App)

Add render <id: turn the note’s lines into HTML. , , lines become <h1…<h3; consecutive - lines become one <ul with <li items; other non-empty lines become <p. Inside text, escape &, < and , then bold becomes <strong and italic <em. Print one tag per line.

Input: As before.

Output: As before, plus HTML.

Difficulty: Medium. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Walk the lines with an “inside a list” flag to open and close <ul.

More Notes App practice