feat(Highlight): fix svelte warn (aria-hidden)

This commit is contained in:
mei (ckie) 2024-11-24 02:44:36 +02:00
parent 9474e7d3f0
commit bea68b93d5
Signed by: ckie
GPG key ID: 13E79449C0525215

View file

@ -15,7 +15,7 @@
</script>
<p class="sr-only">{alt}</p>
<div class=" font-mono relative" aria-hidden title={alt}>
<div class=" font-mono relative" aria-hidden="true" title={alt}>
<!-- HACK: apply the pre-wrap style to the child to avoid
HTML formatting whitespace issues down the line. -->
<div class="*:whitespace-pre-wrap"><Highlight {language} code={renderedCode} /></div>