feat(theme): support html strings for SidebarGroup headings, SidebarItem text (#1489)

pull/1448/head
josef 2 years ago committed by GitHub
parent d58ff77eb3
commit 946c579f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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" />

@ -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"

Loading…
Cancel
Save