Problem statement
A list of user-submitted course reviews rendered into a single container on the page. The whole point of the exercise is safety and structure: text must render as text (never as HTML), a small whitelist of formatting must be applied structurally, and long reviews must collapse behind an expand control — using Vanilla TypeScript and standard DOM APIs.
Demo
The page, styles, mock data, and the reviews container are already scaffolded and wired. Only the pure helpers in src/js/commentModel.ts and the DOM renderers in src/js/renderComment.ts are missing — implement them so every test passes. Do not edit any other file.
What to implement
- Show each review with the reviewer's name on top and their comment beneath it.
- Show any code or tags that appear inside a review as visible text — it must never run or change the page.
- Keep the line breaks in a review, so each line reads on its own row.
- When a review has a link, show a small clickable link that opens in a new tab safely.
- If the link does not look like a normal web address, do not show a link at all.
- When a review is very long, show only the first part with a Show more button underneath.
- When Show more is clicked, reveal the whole review and hide the button.
- Leave the reviews you were given exactly as they are, and do not change the surrounding page.
- Everything shown must come from the reviews you were given — nothing should be hardcoded.
