RobloxOA #4
Newspaper Paragraph Formatting
Estimated EasyStatement and editorial — judging is being prepared
Topics (AI-labelled)StringsSimulation
You are formatting text for a newspaper page. Text is provided as an array paragraphs, where each paragraph is an array of "chunks". Each chunk has the form [type, content]:
type = "p": paragraph (plain text)type = "bold": boldtype = "italic": italictype = "underline": underline
For each paragraph, return its formatted HTML-like string. Bold → <b>...</b>, italic → <i>...</i>, underline → <u>...</u>. Wrap the entire paragraph in <p>...</p>. Nested formatting should produce nested tags in the order they were applied.
Example: paragraphs = [[["bold", "Hello"]]] → ["<p><b>Hello</b></p>"].
Editorial
Loading solution…