Skip to content

Commit

Permalink
fix(prose-components): use html anchor link in headings (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd authored Jul 27, 2022
1 parent 0fd824a commit 1593ad7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/Prose/ProseH2.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<h2 :id="id">
<NuxtLink :href="`#${id}`">
<a :href="`#${id}`">
<slot />
</NuxtLink>
</a>
</h2>
</template>

Expand Down
4 changes: 2 additions & 2 deletions src/runtime/components/Prose/ProseH3.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<h3 :id="id">
<NuxtLink :href="`#${id}`">
<a :href="`#${id}`">
<slot />
</NuxtLink>
</a>
</h3>
</template>

Expand Down
4 changes: 2 additions & 2 deletions src/runtime/components/Prose/ProseH4.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<h4 :id="id">
<NuxtLink :href="`#${id}`">
<a :href="`#${id}`">
<slot />
</NuxtLink>
</a>
</h4>
</template>

Expand Down

0 comments on commit 1593ad7

Please sign in to comment.