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.
15 lines
246 B
JavaScript
15 lines
246 B
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
export default {
|
|
content: [
|
|
"./index.html",
|
|
"./src/**/*.{js,ts,jsx,tsx}",
|
|
],
|
|
darkMode: 'class',
|
|
theme: {
|
|
extend: {},
|
|
},
|
|
plugins: [
|
|
require('@tailwindcss/typography'),
|
|
],
|
|
}
|