feat: rehype code block
This commit is contained in:
parent
f705c07d55
commit
0cf5cf226c
20 changed files with 503 additions and 145 deletions
|
@ -1,6 +1,16 @@
|
|||
import type { Config } from 'tailwindcss'
|
||||
import defaultTheme from 'tailwindcss/defaultTheme'
|
||||
|
||||
const disabledCss = {
|
||||
'code::before': false,
|
||||
'code::after': false,
|
||||
'blockquote p:first-of-type::before': false,
|
||||
'blockquote p:last-of-type::after': false,
|
||||
pre: false,
|
||||
code: false,
|
||||
'pre code': false,
|
||||
}
|
||||
|
||||
const config: Config = {
|
||||
darkMode: ['selector'],
|
||||
content: ['./src/**/*.{astro,md,mdx,ts,tsx}'],
|
||||
|
@ -57,6 +67,13 @@ const config: Config = {
|
|||
'5': 'hsl(var(--chart-5))',
|
||||
},
|
||||
},
|
||||
typography: {
|
||||
DEFAULT: { css: disabledCss },
|
||||
sm: { css: disabledCss },
|
||||
lg: { css: disabledCss },
|
||||
xl: { css: disabledCss },
|
||||
'2xl': { css: disabledCss },
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [require('@tailwindcss/typography'), require('tailwindcss-animate')],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue