From d985dadfe9cb4fe50cfc046aacb20fa61188d37e Mon Sep 17 00:00:00 2001 From: ckie Date: Sat, 5 Oct 2024 22:07:58 +0300 Subject: [PATCH] alt text --- src/lib/Highlight.svelte | 4 +++- src/routes/+page.svelte | 11 ++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/lib/Highlight.svelte b/src/lib/Highlight.svelte index 2ed64e6..a34077c 100644 --- a/src/lib/Highlight.svelte +++ b/src/lib/Highlight.svelte @@ -5,11 +5,13 @@ export let language; export let code; export let slice = true; + export let alt; let renderedCode; $: renderedCode = slice ? code.replace(/#[^]*?#<\/hidden>/, "") : code;; -
+

{alt}

+
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index a5a525c..65b53de 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -39,8 +39,11 @@
Gain certainty in your deployed system configuration by replacing your opaque state with code. -
- +
+
@@ -51,7 +54,9 @@
http://localhost:3000
тип
- +