Skip to content

Commit 946c579

Browse files
authoredOct 14, 2022
feat(theme): support html strings for SidebarGroup headings, SidebarItem text (#1489)
1 parent d58ff77 commit 946c579

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎src/client/theme-default/components/VPSidebarGroup.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function toggle() {
4141
:role="collapsible ? 'button' : undefined"
4242
@click="toggle"
4343
>
44-
<h2 class="title-text">{{ text }}</h2>
44+
<h2 v-html="text" class="title-text"></h2>
4545
<div class="action">
4646
<VPIconMinusSquare class="icon minus" />
4747
<VPIconPlusSquare class="icon plus" />

Diff for: ‎src/client/theme-default/components/VPSidebarLink.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const closeSideBar = inject('close-sidebar') as () => void
2525
:href="item.link"
2626
@click="closeSideBar"
2727
>
28-
<span class="link-text" :class="{ light: depth > 1 }">{{ item.text }}</span>
28+
<span v-html="item.text" class="link-text" :class="{ light: depth > 1 }"></span>
2929
</VPLink>
3030
<template
3131
v-if="'items' in item && depth < maxDepth"

0 commit comments

Comments
 (0)