
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@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.
The editor is plugin based and includes a static formatting toolbar.
This component is Apache-2 licensed Open Source. Contributors welcome!
npm install @accordproject/markdown-editor
import { MarkdownEditor } from '@accordproject/markdown-editor';
import List from '@accordproject/markdown-editor/dist/plugins/list';
import Video from '@accordproject/markdown-editor/dist/plugins/video';
const plugins = [List(), Video()];
function storeLocal(value, markdown) {
// console.log(markdown);
localStorage.setItem('markdown-editor', markdown);
}
const defaultMarkdown = '# Hello World.';
ReactDOM.render(<MarkdownEditor plugins={plugins} lockText={false} markdownMode={false} markdown={defaultMarkdown} 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.
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/examples 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 99 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.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

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.