Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 46ae936

Browse files
committed
Markdown render description text
* Fixes #24 * Rely on the already imported markdown-it-vue dependency
1 parent f191ffa commit 46ae936

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

dashboard/src/components/rmrk/Gallery/GalleryItem.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</b-tag>
6262
<p v-if="!isLoading"
6363
class="subtitle is-size-5">
64-
{{ nft.description }}
64+
<markdown-it-vue-light class="md-body" :content="nft.description"/>
6565
</p>
6666
<b-skeleton :count="3" size="is-large" :active="isLoading"></b-skeleton>
6767
</div>
@@ -80,9 +80,8 @@
8080
<script lang="ts" >
8181
import { Component, Prop, Vue, Watch } from 'vue-property-decorator';
8282
import { getInstance } from '@/components/rmrk/service/RmrkService';
83-
// import MarkdownItVue from 'markdown-it-vue';
84-
// import MarkdownItVueLight from 'markdown-it-vue/dist/markdown-it-vue-light.umd.min.js';
85-
import 'markdown-it-vue/dist/markdown-it-vue.css'
83+
import MarkdownItVueLight from 'markdown-it-vue/dist/markdown-it-vue-light.umd.min.js';
84+
import 'markdown-it-vue/dist/markdown-it-vue-light.css'
8685
import { NFTWithMeta, NFT } from '../service/scheme';
8786
import { sanitizeIpfsUrl } from '../utils';
8887
import { emptyObject } from '@/utils/empty';
@@ -129,7 +128,7 @@ type NFTType = NFTWithMeta;
129128
Auth: () => import('@/components/shared/Auth.vue'),
130129
AvailableActions,
131130
Facts,
132-
// MarkdownItVue: MarkdownItVue as VueConstructor<Vue>,
131+
MarkdownItVueLight,
133132
Money,
134133
Name,
135134
Sharing,

0 commit comments

Comments
 (0)