File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import type { TocItem } from ' #shared/types/readme'
33import { onClickOutside , useEventListener } from ' @vueuse/core'
4+ import { decodeHtmlEntities } from ' ~/utils/formatters'
45
56const props = defineProps <{
67 toc: TocItem []
@@ -201,7 +202,7 @@ function handleKeydown(event: KeyboardEvent) {
201202 @click =" select()"
202203 @mouseenter =" highlightedIndex = getIndex(node.id)"
203204 >
204- <span class =" truncate" >{{ node.text }}</span >
205+ <span class =" truncate" >{{ decodeHtmlEntities( node.text) }}</span >
205206 </NuxtLink >
206207
207208 <template v-for =" child in node .children " :key =" child .id " >
@@ -219,7 +220,7 @@ function handleKeydown(event: KeyboardEvent) {
219220 @click =" select()"
220221 @mouseenter =" highlightedIndex = getIndex(child.id)"
221222 >
222- <span class =" truncate" >{{ child.text }}</span >
223+ <span class =" truncate" >{{ decodeHtmlEntities( child.text) }}</span >
223224 </NuxtLink >
224225
225226 <NuxtLink
@@ -240,7 +241,7 @@ function handleKeydown(event: KeyboardEvent) {
240241 @click =" select()"
241242 @mouseenter =" highlightedIndex = getIndex(grandchild.id)"
242243 >
243- <span class =" truncate" >{{ grandchild.text }}</span >
244+ <span class =" truncate" >{{ decodeHtmlEntities( grandchild.text) }}</span >
244245 </NuxtLink >
245246 </template >
246247 </template >
You can’t perform that action at this time.
0 commit comments