margin in code and pre tags
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user