InterviewDB Experience

Markdown Parser: Parse a Subset of Markdown and Emit HTML

Interview Experience

Problem Implement a Markdown-to-HTML parser supporting: headings (#, ##, ###), bold (text), italic (text), inline code ( code ), and unordered lists (- item). Input is a multi-line string; output is an HTML string. Follow-ups Your inline parser must handle nested or adjacent markers (bold italic). How do you approach this? A line can be both a list item continuation and contain inline elements. How does your parser track state across lines? What happens with unclosed markers (e.g., **bold withou…

Full Details

🔒

Unlock all Figma questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a figma interview during the phone round.

It covers the following topics: Coding, Phone, Onsite, Strings .