From 793292d0ed1ad1bc3d37c6a4607914f552670fd8 Mon Sep 17 00:00:00 2001 From: Chris W Date: Fri, 6 Oct 2023 22:02:50 -0600 Subject: [PATCH] fix broken indentation --- src/app.html | 2 +- src/routes/[slug]/+page.svelte | 2 +- src/routes/about/+page.svelte | 2 +- src/utils/hljs.ts | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app.html b/src/app.html index 9eb809a..4bfaef6 100644 --- a/src/app.html +++ b/src/app.html @@ -3,7 +3,7 @@ - + %sveltekit.head% diff --git a/src/routes/[slug]/+page.svelte b/src/routes/[slug]/+page.svelte index b3a84df..6b0a037 100644 --- a/src/routes/[slug]/+page.svelte +++ b/src/routes/[slug]/+page.svelte @@ -88,7 +88,7 @@
{@html contents}
{:else} -
 selectAll()} >{@html contents}
+
 selectAll()} >{@html contents}
{/if}
diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 2e8cd8d..981e2f5 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -17,7 +17,7 @@ goto('/')} />
-
+

Paste69

diff --git a/src/utils/hljs.ts b/src/utils/hljs.ts index d283d37..56b8626 100644 --- a/src/utils/hljs.ts +++ b/src/utils/hljs.ts @@ -29,14 +29,13 @@ export const highlight = (code: string, lang: string | undefined = undefined) => }; -// Plugin to add line numbers hljs.addPlugin({ 'after:highlight': (result) => { const code = result.value.split('\n').map((line, index) => { const lineNumber = index + 1; const paddedLineNumber = String(lineNumber).padStart(5, ' '); - return `

${paddedLineNumber}
${line}
`; + return `
${paddedLineNumber}
${line}
`; }).join('\n'); result.value = `
${code}
`