From c4b6e759155c3fc8838d39b77d8f938a1e2b253f Mon Sep 17 00:00:00 2001 From: enscribe Date: Thu, 19 Sep 2024 12:03:58 -0700 Subject: [PATCH] fix: bad typography overrides (#1) --- package-lock.json | 4 ++-- package.json | 2 +- src/components/ui/mobile-menu.tsx | 2 +- src/styles/global.css | 2 +- tailwind.config.ts | 13 ------------- 5 files changed, 5 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8375404..25abdc1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "astro-erudite", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "astro-erudite", - "version": "1.1.0", + "version": "1.1.1", "dependencies": { "@astrojs/check": "^0.7.0", "@astrojs/markdown-remark": "^5.2.0", diff --git a/package.json b/package.json index fed5fce..f965ccd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "astro-erudite", "type": "module", - "version": "1.1.0", + "version": "1.1.1", "private": true, "scripts": { "dev": "astro dev", diff --git a/src/components/ui/mobile-menu.tsx b/src/components/ui/mobile-menu.tsx index f6cf65a..9c77d26 100644 --- a/src/components/ui/mobile-menu.tsx +++ b/src/components/ui/mobile-menu.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react' +import { useState, useEffect } from 'react' import { Button } from '@/components/ui/button' import { DropdownMenu, diff --git a/src/styles/global.css b/src/styles/global.css index 7cf9971..6ffed90 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -83,7 +83,7 @@ @layer components { 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 { @apply overflow-x-auto overflow-y-hidden py-4; diff --git a/tailwind.config.ts b/tailwind.config.ts index 4adf2a4..220d5dd 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -40,19 +40,6 @@ const config: Config = { border: 'hsl(var(--border))', 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')],