Skip to content

Commit

Permalink
fix: don't escape entities in headers again (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored May 18, 2024
1 parent e784441 commit 104b692
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vitepress/components/VPDocOutlineItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ 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">{{
text
}}</a>
<a class="outline-link" :href="link" @click="onClick" v-show="!hidden" v-html="text" />
<template v-if="children?.length && frontmatter.outline === 'deep'">
<VPDocOutlineItem :headers="children" :nested="true" />
</template>
Expand Down

0 comments on commit 104b692

Please sign in to comment.