Skip to content

Commit

Permalink
feat(theme): support html strings for SidebarGroup headings, SidebarI…
Browse files Browse the repository at this point in the history
…tem text (#1489)
  • Loading branch information
josefaidt committed Oct 14, 2022
1 parent d58ff77 commit 946c579
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPSidebarGroup.vue
Expand Up @@ -41,7 +41,7 @@ function toggle() {
:role="collapsible ? 'button' : undefined"
@click="toggle"
>
<h2 class="title-text">{{ text }}</h2>
<h2 v-html="text" class="title-text"></h2>
<div class="action">
<VPIconMinusSquare class="icon minus" />
<VPIconPlusSquare class="icon plus" />
Expand Down
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPSidebarLink.vue
Expand Up @@ -25,7 +25,7 @@ const closeSideBar = inject('close-sidebar') as () => void
:href="item.link"
@click="closeSideBar"
>
<span class="link-text" :class="{ light: depth > 1 }">{{ item.text }}</span>
<span v-html="item.text" class="link-text" :class="{ light: depth > 1 }"></span>
</VPLink>
<template
v-if="'items' in item && depth < maxDepth"
Expand Down

0 comments on commit 946c579

Please sign in to comment.