
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@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 '@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.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 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
[](https://www.npmjs.com/package/@accordproject/markdown-editor) [](https://badge.fury.io/js/%40accord
The npm package @accordproject/markdown-editor receives a total of 0 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.