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" :role="collapsible ? 'button' : undefined"
@click="toggle" @click="toggle"
> >
<h2 class="title-text">{{ text }}</h2> <h2 v-html="text" class="title-text"></h2>
<div class="action"> <div class="action">
<VPIconMinusSquare class="icon minus" /> <VPIconMinusSquare class="icon minus" />
<VPIconPlusSquare class="icon plus" /> <VPIconPlusSquare class="icon plus" />

@ -25,7 +25,7 @@ const closeSideBar = inject('close-sidebar') as () => void
:href="item.link" :href="item.link"
@click="closeSideBar" @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> </VPLink>
<template <template
v-if="'items' in item && depth < maxDepth" v-if="'items' in item && depth < maxDepth"

Loading…
Cancel
Save