Skip to content

Commit

Permalink
revert: #106
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed May 21, 2024
1 parent f9629db commit 4623cb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vitepress/components/VPDocOutlineItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function onClick({ target: el }: Event) {
<template>
<ul :class="nested ? 'nested' : 'root'">
<li v-for="{ children, link, text, hidden } in headers">
<a class="outline-link" :href="link" @click="onClick" v-show="!hidden" v-html="text" />
<a class="outline-link" :href="link" @click="onClick" v-show="!hidden">{{
text
}}</a>
<template v-if="children?.length && frontmatter.outline === 'deep'">
<VPDocOutlineItem :headers="children" :nested="true" />
</template>
Expand Down

0 comments on commit 4623cb2

Please sign in to comment.