@sdbit/mkd-editor

1.2.5 • Public • Published

Getting Started

To begin using the Markdown editor, install it with:

npm install @sdbit/mkd-editor

Usage 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"
]

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.51latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.51
1.2.40
1.2.31
1.2.20
1.2.11
1.2.01
1.1.90
1.1.80
1.1.70
1.1.60
1.1.50
1.1.40
1.1.31
1.1.20
1.1.10
1.1.00
0.1.90
0.1.80
0.1.71
0.1.60
0.1.50
0.1.41
0.1.30
0.1.20
0.1.10
0.0.90
0.0.80
0.0.70
0.0.60
0.0.51
0.0.40
0.0.30
0.0.21
0.0.10

Package Sidebar

Install

npm i @sdbit/mkd-editor

Weekly Downloads

9

Version

1.2.5

License

none

Unpacked Size

89.1 kB

Total Files

13

Last publish

Collaborators

  • farukulwd