fix: bad typography overrides (#1)

This commit is contained in:
enscribe 2024-09-19 12:03:58 -07:00
parent c64a081508
commit c4b6e75915
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
5 changed files with 5 additions and 18 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "astro-erudite", "name": "astro-erudite",
"version": "1.1.0", "version": "1.1.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "astro-erudite", "name": "astro-erudite",
"version": "1.1.0", "version": "1.1.1",
"dependencies": { "dependencies": {
"@astrojs/check": "^0.7.0", "@astrojs/check": "^0.7.0",
"@astrojs/markdown-remark": "^5.2.0", "@astrojs/markdown-remark": "^5.2.0",

View file

@ -1,7 +1,7 @@
{ {
"name": "astro-erudite", "name": "astro-erudite",
"type": "module", "type": "module",
"version": "1.1.0", "version": "1.1.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",

View file

@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react' import { useState, useEffect } from 'react'
import { Button } from '@/components/ui/button' import { Button } from '@/components/ui/button'
import { import {
DropdownMenu, DropdownMenu,

View file

@ -83,7 +83,7 @@
@layer components { @layer components {
article { article {
@apply prose-headings:scroll-mt-20 prose-headings:break-words prose-p:break-words; @apply prose-headings:scroll-mt-20 prose-headings:break-words prose-p:break-words prose-pre:!px-0;
.katex-display { .katex-display {
@apply overflow-x-auto overflow-y-hidden py-4; @apply overflow-x-auto overflow-y-hidden py-4;

View file

@ -40,19 +40,6 @@ const config: Config = {
border: 'hsl(var(--border))', border: 'hsl(var(--border))',
ring: 'hsl(var(--ring))', ring: 'hsl(var(--ring))',
}, },
typography: {
DEFAULT: {
css: {
'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',
},
},
},
}, },
}, },
plugins: [require('@tailwindcss/typography'), require('tailwindcss-animate')], plugins: [require('@tailwindcss/typography'), require('tailwindcss-animate')],