fix: use markdown for description in cards (#2011)

This commit is contained in:
Hayden 2023-01-08 10:51:36 -08:00 committed by GitHub
parent ae59f04b9f
commit a72f038247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -20,7 +20,7 @@
<div v-if="hover" class="d-flex transition-fast-in-fast-out secondary v-card--reveal" style="height: 100%">
<v-card-text class="v-card--text-show white--text">
<div class="descriptionWrapper">
{{ description}}
<SafeMarkdown :source="description" />
</div>
</v-card-text>
</div>

View file

@ -22,7 +22,9 @@
</slot>
<v-list-item-content>
<v-list-item-title class="mb-1">{{ name }} </v-list-item-title>
<v-list-item-subtitle> {{ description }} </v-list-item-subtitle>
<v-list-item-subtitle>
<SafeMarkdown :source="description" />
</v-list-item-subtitle>
<div class="d-flex justify-center align-center">
<slot name="actions">
<RecipeFavoriteBadge v-if="loggedIn" :slug="slug" show-always />