margin in code and pre tags
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Rei
2023-01-18 17:27:12 +01:00
parent b4e6631f07
commit 839defdd06
2 changed files with 5 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ import { Components } from "react-markdown";
import { generateSlug } from "../utils/general"; import { generateSlug } from "../utils/general";
import ReactMarkdown from "react-markdown"; import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm"; import remarkGfm from "remark-gfm";
import { useEffect } from "react";
SyntaxHighlighter.registerLanguage("tsx", tsx); SyntaxHighlighter.registerLanguage("tsx", tsx);
SyntaxHighlighter.registerLanguage("typescript", typescript); SyntaxHighlighter.registerLanguage("typescript", typescript);
SyntaxHighlighter.registerLanguage("scss", scss); SyntaxHighlighter.registerLanguage("scss", scss);

View File

@@ -40,4 +40,8 @@ h2 > a:hover::before,
h3 > a:hover::before, h3 > a:hover::before,
h4 > a:hover::before { h4 > a:hover::before {
@apply content-['#'] absolute -left-8 text-gray-300 dark:text-gray-600; @apply content-['#'] absolute -left-8 text-gray-300 dark:text-gray-600;
}
div > code, pre > code {
@apply p-0 m-0 !important
} }