
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@accordproject/markdown-editor
Advanced tools
A rich text editor that can read and write markdown text. Based on Slate.js.
This is a React component for a rich text editor that can read and write CommonMark Markdown text. The editor uses Slate.js.
The editor is plugin based and includes a pop-up formatting toolbar.
This component is Apache-2 licensed Open Source. Contributors welcome!
https://accordproject-markdown-editor.netlify.com/examples/
npm install @accordproject/markdown-editor
import { MarkdownEditor } from '@accordproject/markdown-editor';
import List from '../../src/plugins/list';
import Video from '../../src/plugins/video';
const plugins = [List(), Video()];
function storeLocal(editor) {
localStorage.setItem('markdown-editor', editor.getMarkdown());
}
ReactDOM.render(<MarkdownEditor plugins={plugins} onChange={storeLocal} />, document.getElementById('root'));
For an example React App see the ./examples/ folder.
A TextArea containing CommonMark synchronized with a MarkdownEditor component, rendered using Slate.js.
The code for the sample video plugin used in the demo is here:
https://github.com/accordproject/markdown-editor/blob/master/src/plugins/video.js


Run npm start and then navigate to: http://localhost:3001/examples
In the project directory, you can run:
npm startRuns the app in the development mode.
Open [http://localhost:3001](http://localhost:30001 to view it in the browser.
The page will reload if you make edits.
npm run buildBuilds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
FAQs
[](https://www.npmjs.com/package/@accordproject/markdown-editor) [](https://badge.fury.io/js/%40accord
The npm package @accordproject/markdown-editor receives a total of 95 weekly downloads. As such, @accordproject/markdown-editor popularity was classified as not popular.
We found that @accordproject/markdown-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.