coyotte508 HF staff commited on
Commit
d71f92c
1 Parent(s): a732b79

🐛 Fix code formatting (#192)

Browse files
src/lib/components/CodeBlock.svelte CHANGED
@@ -16,13 +16,11 @@
16
  </script>
17
 
18
  <div class="group relative my-4 rounded-lg">
 
19
  <pre
20
- class="scrollbar-custom overflow-auto px-5 scrollbar-thumb-gray-500 hover:scrollbar-thumb-gray-400 dark:scrollbar-thumb-white/10 dark:hover:scrollbar-thumb-white/20">
21
- <code class="language-{lang}">
22
- <!-- eslint-disable-next-line svelte/no-at-html-tags -->
23
- {@html highlightedCode || code.replaceAll("<", "&lt;")}
24
- </code>
25
- </pre>
26
  <CopyToClipBoardBtn
27
  classNames="absolute top-2 right-2 invisible opacity-0 group-hover:visible group-hover:opacity-100"
28
  value={code}
 
16
  </script>
17
 
18
  <div class="group relative my-4 rounded-lg">
19
+ <!-- eslint-disable svelte/no-at-html-tags -->
20
  <pre
21
+ class="scrollbar-custom overflow-auto px-5 scrollbar-thumb-gray-500 hover:scrollbar-thumb-gray-400 dark:scrollbar-thumb-white/10 dark:hover:scrollbar-thumb-white/20"><code
22
+ class="language-{lang}">{@html highlightedCode || code.replaceAll("<", "&lt;")}</code
23
+ ></pre>
 
 
 
24
  <CopyToClipBoardBtn
25
  classNames="absolute top-2 right-2 invisible opacity-0 group-hover:visible group-hover:opacity-100"
26
  value={code}