Skip to content

Commit

Permalink
fix: use markdown for description in cards (mealie-recipes#2011)
Browse files Browse the repository at this point in the history
  • Loading branch information
hay-kot authored Jan 8, 2023
1 parent ae59f04 commit a72f038
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/components/Domain/Recipe/RecipeCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 3 additions & 1 deletion frontend/components/Domain/Recipe/RecipeCardMobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down

0 comments on commit a72f038

Please sign in to comment.