All Projects → steelydylan → react-split-mde

steelydylan / react-split-mde

Licence: MIT license
react-split-mde.vercel.app

Programming Languages

typescript
32286 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to react-split-mde

Kirby Visual Markdown
Visual Markdown Editor for Kirby CMS 2
Stars: ✭ 171 (+451.61%)
Mutual labels:  markdown-editor
Pine
A modern, native macOS markdown editor
Stars: ✭ 2,818 (+8990.32%)
Mutual labels:  markdown-editor
xknote
📒 XK-Note | 一个集各种神奇功能的云笔记
Stars: ✭ 69 (+122.58%)
Mutual labels:  markdown-editor
Abricotine
Markdown editor with inline preview
Stars: ✭ 2,308 (+7345.16%)
Mutual labels:  markdown-editor
Panwriter
Markdown editor with pandoc integration and paginated preview.
Stars: ✭ 242 (+680.65%)
Mutual labels:  markdown-editor
ember-simplemde
A wrapper around the SimpleMDE editor for use in Ember CLI projects.
Stars: ✭ 14 (-54.84%)
Mutual labels:  markdown-editor
Pervane
Plain text file based note taking and knowledge base building tool, markdown editor, simple browser IDE.
Stars: ✭ 159 (+412.9%)
Mutual labels:  markdown-editor
noteworthy
Markdown editor with bidirectional links and excellent math support, powered by ProseMirror. (In Development!)
Stars: ✭ 178 (+474.19%)
Mutual labels:  markdown-editor
Toonote
小兔笔记:Markdown 内置数据 跨平台 加密存储
Stars: ✭ 247 (+696.77%)
Mutual labels:  markdown-editor
ClearWriter
A silent notepad.
Stars: ✭ 25 (-19.35%)
Mutual labels:  markdown-editor
Miikun
Simple Markdown Editor using Electron.
Stars: ✭ 215 (+593.55%)
Mutual labels:  markdown-editor
Table Magic
Converts between CSV, HTML and Markdown. Has a little form editor and a preview.
Stars: ✭ 243 (+683.87%)
Mutual labels:  markdown-editor
hoodie-notes
A Markdown notebook built with React and Hoodie
Stars: ✭ 17 (-45.16%)
Mutual labels:  markdown-editor
Markdown Edit
online markdown editor/viewer
Stars: ✭ 188 (+506.45%)
Mutual labels:  markdown-editor
notes
Simple text editor for your Markdown and LaTeX notes.
Stars: ✭ 24 (-22.58%)
Mutual labels:  markdown-editor
Markdown
📖Clean & Modern MarkDown Generator, 🔌Offline Support and Easy Generation of Markdown ⚡️⚛️ https://github.com/JP1016/Markdown-Electron/releases
Stars: ✭ 170 (+448.39%)
Mutual labels:  markdown-editor
rentry
Markdown pastebin from command line
Stars: ✭ 252 (+712.9%)
Mutual labels:  markdown-editor
vue-editor
This is a powerful and based on the 'Vue' Markdown editor.😂😂
Stars: ✭ 31 (+0%)
Mutual labels:  markdown-editor
leanote-desktop-lite
Another Leanote desktop app, based on Electron + React. Support Auto-markdown
Stars: ✭ 48 (+54.84%)
Mutual labels:  markdown-editor
Flask-MDE
Markdown editor with WTForms integration for Flask
Stars: ✭ 21 (-32.26%)
Mutual labels:  markdown-editor

React Split MDE

npm version npm download GitHub license Tweet

React Split MDE is a Markdown Editor which enables you to write contents smoothly even with a large amount of content.

Firefox
Firefox
Chrome
Chrome
Safari
Safari
iOS Safari
iOS Safari

ScreenShot

Not Yet

Features

  • Fully customizable
  • Synced scroll position across the contents and the preview
  • No stress writing even with a large amount of content

Install

You should also import zenn-markdown-html as peer dependencies

$ npm install react-split-mde zenn-markdown-html --save

Usage

import React, { useCallback, useState } from 'react';
import { render } from 'react-dom';
import { Editor, useProvider } from 'react-split-mde';
import { parser } from 'react-split-mde/lib/parser';
import 'react-split-mde/css/index.css';

const MDE = () => {
  const [markdown, setMarkdown] = useState('')
  const handleValueChange = useCallback((newValue: string) => {
    setMarkdown(newValue);
  }, []);

  return (
    <Editor
      parser={parser}
      value={markdown}
      onChange={handleValueChange}
    />
  )
}

render(<MDE />, document.getElementById("app"));

Try it on CodeSandbox

Not yet...

Props

Props Description Type Default
commands key binds Record< string, Command>;
previewClassName class name to be applied to preview area "znc"
previewCallback morphdom callbacks to be applied to preview area Record<string, Function> {}
parser markdown parser function ( text : string ) => Promise <string>
value markdown string ""
onChange callback when markdown changed ( value : string ) => void
psudoMode highlight markdown area with highlight.js boolean false
debounceTime debounced time to apply markdown result to preview area number 3000

Download

Download ZIP

Github

https://github.com/steelydylan/react-split-mde

Contributor

@steelydylan

License

Code and documentation copyright 2020 by steelydylan, Inc. Code released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].