Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 15x 5x 9x 9x 15x | <template>
<section v-if="notes.length" :aria-labelledby="headingId" class="border-t border-default pt-6">
<h2 :id="headingId" class="text-kicker">
{{ $t("articleNotes.title") }}
</h2>
<ol class="mt-4 flex flex-col gap-3">
<li
v-for="note in notes"
:id="noteAnchor(note.id)"
:key="note.id"
class="grid grid-cols-[1.75rem_1fr] font-serif text-citation text-toned"
>
<ULink
:to="`#${noteReferenceAnchor(note.id)}`"
raw
:aria-label="$t('articleNotes.back', { number: note.id })"
class="-my-2.5 flex min-h-11 items-start pt-2.5 font-sans text-xs/5 font-semibold text-secondary hover:underline focus-visible:rounded-xs focus-visible:outline-offset-0"
>
{{ note.id }}
</ULink>
<!-- eslint-disable vue/no-v-html -- only ever fed from the articles layer's sanitising body mapper -->
<span class="hl-links wrap-break-word" v-html="note.html" />
<!-- eslint-enable vue/no-v-html -->
</li>
</ol>
</section>
</template>
<script setup lang="ts">
interface Props {
notes: Note[];
}
defineProps<Props>();
const headingId = useId();
</script>
|