Skip to content

Commit

Permalink
Fix codeblock rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
DamitusThyYeetus123 committed Dec 6, 2024
1 parent 01dc400 commit 22dfa18
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
5 changes: 0 additions & 5 deletions src/content/docs/es/whynixos.md

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/[lang]/docs/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const { Content } = await render(entry);

<Layout>
<div
class="prose prose-test justify-center justify-items-center max-w-none prose-sm px-2 md:prose-lg lg:prose-xl"
class="prose prose-colors justify-center justify-items-center max-w-none prose-sm px-2 md:prose-lg lg:prose-xl"
>
<h1>{entry.data.title}</h1>
<Content />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[lang]/preface.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const { Content } = await render(entry);

<Layout>
<div
class="prose prose-test justify-center justify-items-center max-w-none prose-sm px-2 md:prose-lg lg:prose-xl"
class="prose prose-colors justify-center justify-items-center max-w-none prose-sm px-2 md:prose-lg lg:prose-xl"
>
<h1>{entry.data.title}</h1>
<Content />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[lang]/why-nixos.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const { Content } = await render(entry);

<Layout>
<div
class="prose prose-test justify-center justify-items-center max-w-none prose-sm px-2 md:prose-lg lg:prose-xl"
class="prose prose-colors justify-center justify-items-center max-w-none prose-sm px-2 md:prose-lg lg:prose-xl"
>
<h1>{entry.data.title}</h1>
<Content />
Expand Down
26 changes: 18 additions & 8 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin');
const plugin = require("tailwindcss/plugin");

export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
Expand All @@ -22,7 +22,17 @@ export default {
},
},
typography: ({ theme }) => ({
test: {
DEFAULT: {
css: {
"code::before": {
content: "",
},
"code::after": {
content: "",
},
},
},
colors: {
css: {
"--tw-prose-body": theme("colors.theme[900]"),
"--tw-prose-headings": theme("colors.theme[900]"),
Expand Down Expand Up @@ -61,10 +71,10 @@ export default {
}),
},
},
plugins: [
require("@tailwindcss/typography"),
plugin(function({ addVariant }) {
addVariant('children', '&>*')
})
],
plugins: [
require("@tailwindcss/typography"),
plugin(function ({ addVariant }) {
addVariant("children", "&>*");
}),
],
};

0 comments on commit 22dfa18

Please sign in to comment.