Installation
Requirements
- React 18.0.0 or higher
- Node.js 16.0.0 or higher
Using npm
npm install ds-markdownUsing yarn
yarn add ds-markdownUsing pnpm
pnpm add ds-markdownImport Styles
If you need to use default styles, import the CSS file:
import 'ds-markdown/style.css';If using math formulas, also import KaTeX styles:
import 'ds-markdown/katex.css';Verify Installation
After installation, you can verify it with:
import DsMarkdown from 'ds-markdown';
function App() {
return (
<DsMarkdown interval={20}>
# Installation Successful!
If you can see this text, the installation was successful.
</DsMarkdown>
);
}