The markdown is not working except for italic and bold.i have figure out the problem is caused by tailwindcss because of how it handles text-size and others,how do i know well if i comment out the index.css import in the index.jsx which defines the directives for tailwindcss it will work for all markdown types like heading,code, etc.but i do not not how to fix that while still using tailwindcss ,any helps please.
News.jsx
import ReactMarkdown from 'react-markdown';
import { useState } from 'react';
function News() {
const [markdown, setMarkdown] = useState('# I am heading');
return (
<div>
<textarea value={markdown} onChange={e => setMarkdown(e.target.value)} />
<ReactMarkdown>{markdown}</ReactMarkdown>
</div>
);
}
export default News;
index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
index.js
import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter as Router } from "react-router-dom";
import './index.css'
import App from './App';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<Router>
<App />
</Router>
</React.StrictMode>
);