1.2.5 • Published 12 months ago
@sdbit/mkd-editor v1.2.5
Getting Started
To begin using the Markdown editor, install it with:
npm install @sdbit/mkd-editorUsage Example Here?s a sample setup for integrating the Markdown editor with dynamic import and state management:
"use client";
import dynamic from "next/dynamic";
import { useState } from "react";
const MarkDownEditor = dynamic(() => import("@/components/MarkdownEditor/MarkDownEditor"), { ssr:false})
fexport default function Home() {
const [markdownValue, setMarkdownValue] = useState("");
return (
<div style={{ height: "100vh", backgroundColor: "white" }} data-color-mod="light">
<MarkDownEditor
value={markdownValue}
onChange={(newContent) => setMarkdownValue(newContent)}
/>
</div>
);
}Important Configuration
In your next.config.js, include the following configuration to transpile the package:
transpilePackages: [
"@sdbit/mkd-editor"
]1.2.5
12 months ago
1.2.4
12 months ago
1.2.3
12 months ago
1.2.2
12 months ago
1.2.1
12 months ago
1.2.0
12 months ago
1.1.9
12 months ago
1.1.8
12 months ago
1.1.7
12 months ago
1.1.6
12 months ago
1.1.5
12 months ago
1.1.4
12 months ago
1.1.3
12 months ago
1.1.2
12 months ago
1.1.1
12 months ago
1.1.0
12 months ago
0.1.9
12 months ago
0.1.8
12 months ago
0.1.7
12 months ago
0.1.6
12 months ago
0.1.5
12 months ago
0.1.4
12 months ago
0.1.3
12 months ago
0.1.2
12 months ago
0.1.1
12 months ago
0.0.9
12 months ago
0.0.8
12 months ago
0.0.7
12 months ago
0.0.6
12 months ago
0.0.5
12 months ago
0.0.4
12 months ago
0.0.3
12 months ago
0.0.2
12 months ago
0.0.1
12 months ago