fix: properly set target for `#` links

finxol.io 49da8fe7 72bf3720

verified
Changed files
+6 -6
app
components
content
+6 -6
app/components/content/ProseA.vue
···
<template>
-
<NuxtLink
-
:href="props.href"
-
:target="props.target"
-
>
-
<slot />
-
</NuxtLink>
+
<NuxtLink
+
:href="props.href"
+
:target="props.href.at(0) === '#' ? '' : props.target"
+
>
+
<slot />
+
</NuxtLink>
</template>
<script setup lang="ts">