Skip to content

Commit 9f60dd8

Browse files
committed
feat: add v-html in nq-card
1 parent 553fe2e commit 9f60dd8

File tree

1 file changed

+2
-6
lines changed
  • packages/nimiq-vitepress-theme/src/components

1 file changed

+2
-6
lines changed

packages/nimiq-vitepress-theme/src/components/NqCard.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ const colors: Partial<Record<CardColor, string>> = { blue: '#0E65C9', green: '#1
3737
>
3838
<div v-if="icon" :class="[`${icon} ${iconClass}`, iconClass ? iconClass : 'f-size-120/160 absolute right--12']" :style="`color: ${colors[bgColor!]}`" />
3939
<span nq-label text-12 mb-4 text="neutral-700 data-inverted:white/50" data-inverted:mb-8>{{ label }}</span>
40-
<h2 font-semibold f-text="xl data-inverted:2xl" data-inverted:text-white>
41-
{{ title }}
42-
</h2>
43-
<p text="data-inverted:white/60" data-inverted:f-text-lg data-inverted:mt-4>
44-
{{ description }}
45-
</p>
40+
<h2 font-semibold f-text="xl data-inverted:2xl" data-inverted:text-white v-html="title" />
41+
<p text="data-inverted:white/60" data-inverted:f-text-lg data-inverted:mt-4 v-html="description" />
4642
</component>
4743
</template>

0 commit comments

Comments
 (0)