Format slide texts in WhatsApp style
CI / Deploy / test (push) Successful in 1m9s
CI / Deploy / deploy (push) Skipped

Slide descriptions support *bold*, _italic_, ~strikethrough~ and lists
with "- " or "* " at the start of a line. FormatHelper renders them for
the participant page and the PDF (escaping everything else), Format in
plenario.js builds the same DOM for presenter and embed. Participant
input stays plain text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-11 14:23:10 +01:00
1 parent 3465f69bfc
commit 8d3d8d4341
12 files changed
+215 -8

No files matched your search

+2
View File
@@ -111,7 +111,9 @@ $optionsError = $slide->getError('options_text');
'type' => 'textarea',
'rows' => $slide->type === 'content' ? 6 : 2,
'label' => $slide->type === 'content' ? __('Text') : __('Beschreibung (optional)'),
'aria-describedby' => 'description-format',
]) ?>
<p class="hint" id="description-format"><?= __('Formatierung wie bei WhatsApp: *fett*, _kursiv_, ~durchgestrichen~, Aufzählung mit „- “ am Zeilenanfang.') ?></p>
<?php if ($slide->type === 'choice') : ?>
<div class="input textarea<?= $optionsError ? ' error' : '' ?>">