Install @tailwindcss/typography package and configure it in tailwind.config.js to properly style rendered markdown content. The prose class now applies correct styles to headings, lists, code blocks, and other markdown elements.
42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"name": "markdown-editor-frontend",
|
|
"version": "1.0.0",
|
|
"description": "Markdown editor with live preview",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest",
|
|
"lint": "eslint src --ext ts,tsx"
|
|
},
|
|
"dependencies": {
|
|
"lucide-react": "^0.263.1",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-markdown": "^9.0.1",
|
|
"remark-gfm": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"@testing-library/jest-dom": "^6.4.2",
|
|
"@testing-library/react": "^15.0.6",
|
|
"@testing-library/user-event": "^14.5.2",
|
|
"@types/react": "^18.3.1",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
"@typescript-eslint/parser": "^7.0.0",
|
|
"@vitejs/plugin-react": "^4.3.0",
|
|
"autoprefixer": "^10.4.19",
|
|
"eslint": "^8.57.0",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-react-refresh": "^0.4.6",
|
|
"jsdom": "^24.0.0",
|
|
"postcss": "^8.4.38",
|
|
"tailwindcss": "^3.4.3",
|
|
"typescript": "^5.4.5",
|
|
"vite": "^5.2.8",
|
|
"vitest": "^1.5.0"
|
|
}
|
|
}
|