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

Commit b496fd9

Browse files
authored
Merge pull request #270 from riton/feature/markdown_render
Markdown render description text
2 parents d7eaa80 + 62909da commit b496fd9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 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';
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';
@@ -99,7 +98,7 @@ import { resolveMedia } from '../utils';
9998
import { MediaType } from '../types';
10099
import { MetaInfo } from 'vue-meta';
101100
import isShareMode from '@/utils/isShareMode';
102-
// import { VueConstructor } from 'vue';
101+
import { VueConstructor } from 'vue';
103102
104103
type NFTType = NFTWithMeta;
105104
@@ -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: MarkdownItVueLight as VueConstructor<Vue>,
133132
Money,
134133
Name,
135134
Sharing,

0 commit comments

Comments
 (0)