Skip to content

Commit 747b6f7

Browse files
committed
fix: render slide bullets in playground preview
1 parent 6f22028 commit 747b6f7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/playground/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ function generatePreviewHTML(doc: OSFDocument): string {
310310
html += `<h2 class="text-2xl font-bold mb-4">${block.title || 'Slide'}</h2>`;
311311
if (block.content) {
312312
html += renderSlideContentHTML(block.content);
313+
} else if (block.bullets && block.bullets.length > 0) {
314+
html += '<ul class="list-disc pl-6 my-2">';
315+
html += block.bullets.map((item) => `<li>${escapeHTML(item)}</li>`).join('');
316+
html += '</ul>';
313317
}
314318
html += '</div>';
315319
break;

0 commit comments

Comments
 (0)