Skip to content

Commit 69251b7

Browse files
committedAug 4, 2023
feat(theme): allow passing html in nav links
closes #1652
1 parent 0c9dd1f commit 69251b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/client/theme-default/components/VPFlyout.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function onBlur() {
3939
>
4040
<span v-if="button || icon" class="text">
4141
<component v-if="icon" :is="icon" class="option-icon" />
42-
{{ button }}
42+
<span v-html="button"></span>
4343
<VPIconChevronDown class="text-icon" />
4444
</span>
4545

‎src/client/theme-default/components/VPNavBarMenuLink.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const { page } = useData()
2626
:rel="item.rel"
2727
tabindex="0"
2828
>
29-
{{ item.text }}
29+
<span v-html="item.text"></span>
3030
</VPLink>
3131
</template>
3232

0 commit comments

Comments
 (0)
Please sign in to comment.