fix(podcast): use markdown description value for editor + set prose class to about description

fixes #156
This commit is contained in:
Yassine Doghri 2022-02-02 14:58:59 +00:00
parent 8fbf948fbb
commit f304d97b14
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@
as="MarkdownEditor"
name="description"
label="<?= lang('Podcast.form.description') ?>"
value="<?= htmlspecialchars($podcast->description) ?>"
value="<?= htmlspecialchars($podcast->description_markdown) ?>"
required="true" />
<fieldset>

View File

@ -3,8 +3,8 @@
<?= $this->section('content') ?>
<div class="px-2 sm:px-4">
<div class="mb-2"><?= $podcast->description_html ?></div>
<div class="flex gap-x-4 gap-y-2">
<div class="mb-2 prose"><?= $podcast->description_html ?></div>
<div class="flex flex-wrap gap-x-4 gap-y-2">
<span class="px-2 py-1 text-sm font-semibold border rounded-sm border-subtle bg-highlight">
<?= category_label($podcast->category) ?>
</span>