Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@uiw/react-md-editor
Advanced tools
A markdown editor with preview, implemented with React.js and TypeScript.
A markdown editor with preview, implemented with React.js and TypeScript.
npm i @uiw/react-md-editor
import React from "react";
import ReactDOM from "react-dom";
import MEDitor from '@uiw/react-md-editor';
export default function App() {
const [value, setValue] = React.useState("**Hello world!!!**");
return (
<div className="container">
<MEDitor
value={value}
onChange={setValue}
/>
</div>
);
}
value: string
: The Markdown value.onChange?: (value: string)
: Event handler for the onChange
event.commands?: ICommand[]
: An array of ICommand
, which, each one, contain a commands
property. If no commands are specified, the default will be used. Commands are explained in more details below.autoFocus?: number=true
: Can be used to make Markdown Editor
focus itself on initialization.previewOptions?: ReactMarkdown.ReactMarkdownProps
: This is reset react-markdown settings.height?: number=200
: The height of the editor.visiableDragbar?: boolean=true
: Show drag and drop tool. Set the height of the editor.fullscreen?: boolean=false
: Show markdown preview.preview?: boolean=true
: Show markdown preview.maxHeight?: number=1200
: Maximum drag height. The visiableDragbar=true
value is valid.minHeights?: number=100
: Minimum drag height. The visiableDragbar=true
value is valid.npm run watch # Listen compile .tsx files.
npm run build # compile .tsx files.
npm run doc
Licensed under the MIT License.
FAQs
A markdown editor with preview, implemented with React.js and TypeScript.
The npm package @uiw/react-md-editor receives a total of 74,076 weekly downloads. As such, @uiw/react-md-editor popularity was classified as popular.
We found that @uiw/react-md-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.