Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@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 start
Runs 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 build
Builds 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
[![downloads](https://img.shields.io/npm/dm/@accordproject/markdown-editor)](https://www.npmjs.com/package/@accordproject/markdown-editor) [![npm version](https://badge.fury.io/js/%40accordproject%2Fmarkdown-editor.svg)](https://badge.fury.io/js/%40accord
The npm package @accordproject/markdown-editor receives a total of 125 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 now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.