{"id":16331110,"url":"https://github.com/steelydylan/react-split-mde","last_synced_at":"2025-03-20T23:30:19.074Z","repository":{"id":48885879,"uuid":"298012274","full_name":"steelydylan/react-split-mde","owner":"steelydylan","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-02T11:10:33.000Z","size":551,"stargazers_count":36,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-17T16:55:30.319Z","etag":null,"topics":["markdown","markdown-editor","react","typescript"],"latest_commit_sha":null,"homepage":"https://react-split-mde.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steelydylan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-23T15:22:49.000Z","updated_at":"2025-01-21T15:51:26.000Z","dependencies_parsed_at":"2024-10-28T09:09:13.296Z","dependency_job_id":"059b9467-212f-4ba7-8436-437357968e0c","html_url":"https://github.com/steelydylan/react-split-mde","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelydylan%2Freact-split-mde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelydylan%2Freact-split-mde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelydylan%2Freact-split-mde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelydylan%2Freact-split-mde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steelydylan","download_url":"https://codeload.github.com/steelydylan/react-split-mde/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244088418,"owners_count":20396129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["markdown","markdown-editor","react","typescript"],"created_at":"2024-10-10T23:25:37.566Z","updated_at":"2025-03-20T23:30:18.740Z","avatar_url":"https://github.com/steelydylan.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# React Split MDE\n\n![](https://github.com/steelydylan/react-split-mde/workflows/Node%20CI/badge.svg)\n[![npm version](https://badge.fury.io/js/react-split-mde.svg)](https://badge.fury.io/js/react-split-mde)\n[![npm download](http://img.shields.io/npm/dm/react-split-mde.svg)](https://www.npmjs.com/package/react-split-mde)\n[![GitHub license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://raw.githubusercontent.com/steelydylan/react-split-mde/master/LICENSE)\n[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Awesome%20Markdown%20Editor%20JavaScript%20%Editor\u0026url=https://github.com/steelydylan/react-split-mde\u0026via=zenn_dev\u0026hashtags=zenn)\n\n\nReact Split MDE is a Markdown Editor which enables you to write contents smoothly even with a large amount of content.\n\n| [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png\" alt=\"Firefox\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eFirefox | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png\" alt=\"Chrome\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eChrome | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png\" alt=\"Safari\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eSafari | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari-ios/safari-ios_48x48.png\" alt=\"iOS Safari\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eiOS Safari | \n| --------- | --------- | --------- | --------- | \n\n## ScreenShot\n\nNot Yet\n\n## Features\n\n*   Fully customizable\n*   Synced scroll position across the contents and the preview\n*   No stress writing even with a large amount of content\n\n## Install\n\nYou should also import zenn-markdown-html as peer dependencies\n\n```sh\n$ npm install react-split-mde zenn-markdown-html --save\n```\n\n## Usage\n\n```js\nimport React, { useCallback, useState } from 'react';\nimport { render } from 'react-dom';\nimport { Editor, useProvider } from 'react-split-mde';\nimport { parser } from 'react-split-mde/lib/parser';\nimport 'react-split-mde/css/index.css';\n\nconst MDE = () =\u003e {\n  const [markdown, setMarkdown] = useState('')\n  const handleValueChange = useCallback((newValue: string) =\u003e {\n    setMarkdown(newValue);\n  }, []);\n\n  return (\n    \u003cEditor\n      parser={parser}\n      value={markdown}\n      onChange={handleValueChange}\n    /\u003e\n  )\n}\n\nrender(\u003cMDE /\u003e, document.getElementById(\"app\"));\n```\n\n## Try it on CodeSandbox\n\nNot yet...\n\n## Props\n\n| Props            | Description                                             | Type                                        | Default |\n|------------------|---------------------------------------------------------|---------------------------------------------|---------|\n| commands         | key binds                                               | Record\u0026lt; string,  Command\u0026gt;;               |         |\n| previewClassName | class name to be applied to preview area                |                                             | \"znc\"   |\n| previewCallback  | morphdom callbacks to be applied to preview area        | Record\u0026lt;string, Function\u0026gt;                    | {}      |\n| parser           | markdown parser function                                | ( text :  string )  =\u0026gt;   Promise \u0026lt;string\u0026gt; |         |\n| value            | markdown                                                | string                                      | \"\"      |\n| onChange         | callback when markdown changed                          | ( value :  string )  =\u0026gt;   void              |         |\n| psudoMode        | highlight markdown area with highlight.js               | boolean                                     | false   |\n| debounceTime     | debounced time to apply markdown result to preview area | number                                      | 3000    |\n\n## Download\n[Download ZIP](https://github.com/steelydylan/react-split-mde/archive/master.zip)\n\n## Github\n[https://github.com/steelydylan/react-split-mde](https://github.com/steelydylan/react-split-mde)\n\n## Contributor\n[@steelydylan](https://github.com/steelydylan)\n\n## License\nCode and documentation copyright 2020 by steelydylan, Inc. Code released under the [MIT License](https://github.com/steelydylan/react-split-mde/blob/master/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteelydylan%2Freact-split-mde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteelydylan%2Freact-split-mde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteelydylan%2Freact-split-mde/lists"}