diff --git a/web/package-lock.json b/web/package-lock.json index 500697f4c..f69342535 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -124,6 +124,7 @@ "@storybook/addon-webpack5-compiler-swc": "^4.0.1", "@storybook/react-webpack5": "^9.1.4", "@tailwindcss/container-queries": "^0.1.1", + "@tailwindcss/typography": "^0.5.20", "@testing-library/jest-dom": "^6.4.5", "@testing-library/react": "^15.0.7", "@types/dompurify": "^3.0.5", @@ -7653,6 +7654,33 @@ "tailwindcss": ">=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1" } }, + "node_modules/@tailwindcss/typography": { + "version": "0.5.20", + "resolved": "https://registry.npmmirror.com/@tailwindcss/typography/-/typography-0.5.20.tgz", + "integrity": "sha512-hwbzQuNUfcPvbegQFatVPl/MY/tcM9KLl963hQ5laJKPh81TEZ1+dNG9PirGvcaDBkp+BCshExAyKVPW91dozw==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "6.0.10" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || >=4.0.0 || insiders" + } + }, + "node_modules/@tailwindcss/typography/node_modules/postcss-selector-parser": { + "version": "6.0.10", + "resolved": "https://registry.npmmirror.com/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", + "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@tanstack/query-core": { "version": "5.90.14", "resolved": "https://registry.npmmirror.com/@tanstack/query-core/-/query-core-5.90.14.tgz", diff --git a/web/package.json b/web/package.json index 8a7438523..435a65546 100644 --- a/web/package.json +++ b/web/package.json @@ -139,6 +139,7 @@ "@storybook/addon-webpack5-compiler-swc": "^4.0.1", "@storybook/react-webpack5": "^9.1.4", "@tailwindcss/container-queries": "^0.1.1", + "@tailwindcss/typography": "^0.5.20", "@testing-library/jest-dom": "^6.4.5", "@testing-library/react": "^15.0.7", "@types/dompurify": "^3.0.5", @@ -165,10 +166,10 @@ "eslint-plugin-react-refresh": "^0.4.26", "eslint-plugin-storybook": "^9.1.4", "html-loader": "^5.1.0", - "lefthook": "^1.13.6", "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", + "lefthook": "^1.13.6", "less": "^4.4.2", "postcss": "^8.5.6", "postcss-loader": "^8.2.0", diff --git a/web/src/components/document-preview/md/index.tsx b/web/src/components/document-preview/md/index.tsx index c4c4943e1..5f4bdbe05 100644 --- a/web/src/components/document-preview/md/index.tsx +++ b/web/src/components/document-preview/md/index.tsx @@ -80,9 +80,11 @@ export const Md: React.FC = ({ url, className }) => { )} {!loading && ( - - {content} - +
+ + {content} + +
)} ); diff --git a/web/tailwind.config.js b/web/tailwind.config.js index dab0175d8..d51a0fb69 100644 --- a/web/tailwind.config.js +++ b/web/tailwind.config.js @@ -243,5 +243,6 @@ module.exports = { require('@tailwindcss/line-clamp'), require('tailwind-scrollbar'), require('@tailwindcss/container-queries'), + require('@tailwindcss/typography'), ], };